收货-优化
This commit is contained in:
@@ -211,19 +211,24 @@ namespace WMS.Web.Repositories.Configuration
|
||||
.WithOne()
|
||||
.HasForeignKey(p => p.Fid)
|
||||
.OnDelete(DeleteBehavior.Cascade);
|
||||
ent.HasMany(p => p.Boxs)
|
||||
.WithOne()
|
||||
.HasForeignKey(p => p.TaskId)
|
||||
.OnDelete(DeleteBehavior.Cascade);
|
||||
});
|
||||
builder.Entity<InStockTaskDetails>(ent =>
|
||||
{
|
||||
ent.ToTable("t_erp_instock_task_details");
|
||||
ent.HasKey(x => x.Id);
|
||||
});
|
||||
builder.Entity<InStockTaskBox>(ent =>
|
||||
{
|
||||
ent.ToTable("t_erp_instock_task_box");
|
||||
ent.HasKey(x => x.Id);
|
||||
ent.HasMany(p => p.Details)
|
||||
.WithOne()
|
||||
.HasForeignKey(p => p.Fid)
|
||||
.OnDelete(DeleteBehavior.Cascade);
|
||||
});
|
||||
builder.Entity<InStockTaskDetails>(ent =>
|
||||
builder.Entity<InStockTaskBoxDetails>(ent =>
|
||||
{
|
||||
ent.ToTable("t_erp_instock_task_details");
|
||||
ent.ToTable("t_erp_instock_task_box_details");
|
||||
ent.HasKey(x => x.Id);
|
||||
});
|
||||
#endregion
|
||||
@@ -332,6 +337,7 @@ namespace WMS.Web.Repositories.Configuration
|
||||
public DbSet<InStockDetails> InStockDetails { get; set; }
|
||||
public DbSet<InStockTask> InStockTask { get; set; }
|
||||
public DbSet<InStockTaskBox> InstockTaskBox { get; set; }
|
||||
public DbSet<InStockTaskBoxDetails> InStockTaskBoxDetails { get; set; }
|
||||
public DbSet<InStockTaskDetails> InStockTaskDetails { get; set; }
|
||||
public DbSet<BackRecord> BackRecord { get; set; }
|
||||
public DbSet<BackRecordDetails> BackRecordDetails { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user