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