Added rules entity
Rerfactored relationships
This commit is contained in:
@@ -15,13 +15,14 @@ public sealed class Portfolio : IEntityTypeConfiguration<Entities.Portfolio>
|
||||
|
||||
builder.HasOne(f => f.Creator)
|
||||
.WithMany()
|
||||
.HasForeignKey(f => f.CreatedBy)
|
||||
.HasForeignKey(fk => fk.CreatedBy)
|
||||
.IsRequired()
|
||||
.OnDelete(DeleteBehavior.NoAction);
|
||||
|
||||
builder.HasOne(f => f.Owner)
|
||||
.WithMany()
|
||||
.HasForeignKey(f => f.OwnedBy)
|
||||
.HasForeignKey(fk => fk.OwnedBy)
|
||||
.IsRequired(false)
|
||||
.OnDelete(DeleteBehavior.NoAction);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user