Adds Blazor Web App standard login
This commit is contained in:
21
WatchLog/Data/DatabaseModels/Shared/LinkTableSharedUser.cs
Normal file
21
WatchLog/Data/DatabaseModels/Shared/LinkTableSharedUser.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace WatchLog.Data
|
||||
{
|
||||
[PrimaryKey(nameof(SharedListId), nameof(UserId))]
|
||||
public class LinkTableSharedUser
|
||||
{
|
||||
// --- Foreign Keys ---
|
||||
public int SharedListId { get; set; }
|
||||
public string? UserId { get; set; }
|
||||
|
||||
|
||||
// --- Navigation Properties ---
|
||||
[ForeignKey(nameof(SharedListId))]
|
||||
public virtual SharedList SharedList { get; set; } = null!;
|
||||
|
||||
[ForeignKey(nameof(UserId))]
|
||||
public virtual ApplicationUser User { get; set; } = null!;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user