Работа с порядком правил

This commit is contained in:
2025-05-07 15:43:38 +04:00
parent 3168c9c406
commit d48dc62fe7
6 changed files with 171 additions and 7 deletions
+6
View File
@@ -508,6 +508,12 @@ public partial class Pf2eDbContext
modelBuilder.Entity<Rule>(entity =>
{
BindEntity(entity);
entity
.HasOne(r => r.Parent)
.WithMany(r => r.Children)
.HasForeignKey(r => r.ParentId)
.IsRequired(false);
});
}