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

25 lines
682 B
C#

using Pf2eDataScrapper.Model.Structure;
using Pf2eDataScrapper.Model.Base;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
namespace Pf2eDataScrapper.Model.Structure.BackgroundRelation;
[PrimaryKey(nameof(BackgroundId), nameof(EntityId))]
public partial 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; }
public virtual Background Background { get; set; } = null!;
public virtual Entity Entity { get; set; } = null!;
}