Files
Pf2eDataScrapper/Pf2eModel/Model/Structure/BackgroundRelation/BackgroundItem.cs
T

25 lines
599 B
C#

using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
using Newtonsoft.Json;
using Pf2eModel.Model.Base;
namespace Pf2eModel.Model.Structure.BackgroundRelation;
[PrimaryKey(nameof(BackgroundId), nameof(EntityId))]
public class BackgroundItem
{
[Column(Order = 1)]
public int BackgroundId { get; set; }
[Column(Order = 2)]
public int EntityId { get; set; }
[Column(Order = 3)]
public int? Level { get; set; }
[JsonIgnore]
public Background Background { get; set; } = null!;
public Entity Entity { get; set; } = null!;
}