21 lines
695 B
C#
21 lines
695 B
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace WatchLog.Data
|
|
{
|
|
[PrimaryKey(nameof(SharedListEnityId), nameof(StreamingPlatformId))]
|
|
public class LinkTableSharedStreamingPlatform
|
|
{
|
|
// --- Foreign Keys ---
|
|
public int SharedListEnityId { get; set; }
|
|
public int StreamingPlatformId { get; set; }
|
|
|
|
|
|
// --- Navigation Properties ---
|
|
[ForeignKey(nameof(SharedListEnityId))]
|
|
public virtual SharedListEntity SharedListEntity { get; set; } = null!;
|
|
|
|
[ForeignKey(nameof(StreamingPlatformId))]
|
|
public virtual StreamingPlatform StreamingPlatform { get; set; } = null!;
|
|
}
|
|
} |