Обработчик Правил

This commit is contained in:
2025-05-07 14:06:41 +04:00
parent 8a0cdcb943
commit bf016df060
8 changed files with 144 additions and 4 deletions
+3
View File
@@ -57,4 +57,7 @@ public enum EntityType
[PgName("language")]
Language,
[PgName("rule")]
Rule,
}
+19
View File
@@ -0,0 +1,19 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Pf2eModel.Model.Base;
using Pf2eModel.Model.Enum;
namespace Pf2eModel.Model.Structure;
[EntityOfType(EntityType.Rule)]
public class Rule : IEntity
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.None)]
[Column(Order = 1)]
public int Id { get; set; }
public Entity Entity { get; set; } = null!;
public string[] Breadcrumbs { get; set; } = [];
}