22 lines
562 B
C#
22 lines
562 B
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace Pf2eModel.Model.Structure.AncestryRelation;
|
|
|
|
[PrimaryKey(nameof(AncestryId), nameof(LanguageId))]
|
|
public partial class AncestryLanguage
|
|
{
|
|
[Column(Order = 1)]
|
|
public int AncestryId { get; set; }
|
|
|
|
[Column(Order = 2)]
|
|
public int LanguageId { get; set; }
|
|
|
|
[Column(Order = 3)]
|
|
public bool IsAdditional { get; set; }
|
|
|
|
public virtual Ancestry Ancestry { get; set; } = null!;
|
|
|
|
public virtual Language Language { get; set; } = null!;
|
|
}
|