This commit is contained in:
18942506660
2023-10-26 15:07:52 +08:00
parent e911c2c07d
commit 80fa4d2234
6 changed files with 65 additions and 9 deletions

View File

@@ -52,7 +52,7 @@ namespace WMS.Web.Repositories.Configuration
ent.HasMany(p => p.Details)
.WithOne()
.HasForeignKey(p => p.OutStockId)
.HasForeignKey(p => p.FId)
.OnDelete(DeleteBehavior.Cascade);
});
builder.Entity<OutStockDetails>(ent =>
@@ -70,7 +70,7 @@ namespace WMS.Web.Repositories.Configuration
ent.HasMany(p => p.Details)
.WithOne()
.HasForeignKey(p => p.OutStockTaskId)
.HasForeignKey(p => p.FId)
.OnDelete(DeleteBehavior.Cascade);
});
builder.Entity<OutStockTaskDetails>(ent =>
@@ -88,7 +88,7 @@ namespace WMS.Web.Repositories.Configuration
ent.HasMany(p => p.Details)
.WithOne()
.HasForeignKey(p => p.TakeStockId)
.HasForeignKey(p => p.FId)
.OnDelete(DeleteBehavior.Cascade);
});
builder.Entity<TakeStockDetails>(ent =>