Работа с порядком правил
This commit is contained in:
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user