Продолжение
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Pf2eModel.Model.Base;
|
||||
using Pf2eModel.Model.Enum;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
@@ -9,6 +10,7 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace Pf2eModel.Model.Structure;
|
||||
|
||||
[EntityOfType(EntityType.Archetype)]
|
||||
public class Archetype : IEntity
|
||||
{
|
||||
[Key]
|
||||
@@ -21,7 +23,7 @@ public class Archetype : IEntity
|
||||
public int Level { get; set; }
|
||||
|
||||
[Column(Order = 3)]
|
||||
public int DedicationFeatId { get; set; }
|
||||
public int? DedicationFeatId { get; set; } = null;
|
||||
|
||||
[Column(Order = 4)]
|
||||
public string? Extra { get; set; }
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Pf2eModel.Model.Structure.ArchetypeRelation;
|
||||
|
||||
[PrimaryKey(nameof(ArchetypeId), nameof(FeatId))]
|
||||
internal class ArchetypeFeats
|
||||
{
|
||||
public int ArchetypeId { get; set; }
|
||||
|
||||
public int FeatId { get; set; }
|
||||
}
|
||||
@@ -37,13 +37,11 @@ public partial class Feat : IEntity
|
||||
[Column(Order = 9)]
|
||||
public bool IsPassive { get; set; } = false;
|
||||
|
||||
[Column(Order = 10)]
|
||||
public int ArchetypeId { get; set; }
|
||||
|
||||
[Column(Order = 11)]
|
||||
[Column(Order = 10)]
|
||||
public string? Extra { get; set; }
|
||||
|
||||
public Archetype Archetype { get; set; } = null!;
|
||||
public virtual ICollection<Archetype> Archetypes { get; set; } = [];
|
||||
|
||||
public virtual ICollection<FeatPrerequisite> FeatPrerequisites { get; set; } = [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user