Небольшие исправления модели и обработчиков
This commit is contained in:
@@ -123,12 +123,14 @@ public partial class Pf2eDbContext
|
||||
.HasMany(e => e.LegacyEntities)
|
||||
.WithMany(e => e.RemasterEntities)
|
||||
.UsingEntity<LegacyRemaster>(
|
||||
//l =>
|
||||
// l.HasOne(lr => lr.LegacyEntity).WithMany().HasForeignKey(lr => lr.LegacyId),
|
||||
//r =>
|
||||
// r.HasOne(lr => lr.RemasterEntity)
|
||||
// .WithMany()
|
||||
// .HasForeignKey(lr => lr.RemasterId)
|
||||
l =>
|
||||
l.HasOne(lr => lr.LegacyEntity)
|
||||
.WithMany(e => e.LegacyTransferEntities)
|
||||
.HasForeignKey(lr => lr.LegacyId),
|
||||
r =>
|
||||
r.HasOne(lr => lr.RemasterEntity)
|
||||
.WithMany(e => e.RemasterTransferEntities)
|
||||
.HasForeignKey(lr => lr.RemasterId)
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user