db-创建

This commit is contained in:
tongfei
2023-10-26 15:04:51 +08:00
parent 51ccb28923
commit e911c2c07d
4 changed files with 62 additions and 0 deletions

View File

@@ -199,6 +199,11 @@
同步成功或者失败 同步成功或者失败
</summary> </summary>
</member> </member>
<member name="F:WMS.Web.Domain.Entitys.InstockOrder.Details">
<summary>
明细
</summary>
</member>
<member name="T:WMS.Web.Domain.Entitys.InstockOrderDetails"> <member name="T:WMS.Web.Domain.Entitys.InstockOrderDetails">
<summary> <summary>
wms入库单明细 wms入库单明细
@@ -289,6 +294,11 @@
操作时间(入库时间) 操作时间(入库时间)
</summary> </summary>
</member> </member>
<member name="F:WMS.Web.Domain.Entitys.InstockTask.Details">
<summary>
明细
</summary>
</member>
<member name="T:WMS.Web.Domain.Entitys.InstockTaskDetails"> <member name="T:WMS.Web.Domain.Entitys.InstockTaskDetails">
<summary> <summary>
erp入库任务明细表 erp入库任务明细表

View File

@@ -37,5 +37,11 @@ namespace WMS.Web.Domain.Entitys
/// 同步成功或者失败 /// 同步成功或者失败
/// </summary> /// </summary>
public bool SuccessSync { get; set; } public bool SuccessSync { get; set; }
/// <summary>
/// 明细
/// </summary>
[NotMapped]
public List<InstockOrderDetails> Details = new List<InstockOrderDetails>();
} }
} }

View File

@@ -45,5 +45,11 @@ namespace WMS.Web.Domain.Entitys
/// 操作时间(入库时间) /// 操作时间(入库时间)
/// </summary> /// </summary>
public DateTime OperateTime { get; set; } public DateTime OperateTime { get; set; }
/// <summary>
/// 明细
/// </summary>
[NotMapped]
public List<InstockTaskDetails> Details = new List<InstockTaskDetails>();
} }
} }

View File

@@ -97,6 +97,42 @@ namespace WMS.Web.Repositories.Configuration
ent.HasKey(x => x.Id); ent.HasKey(x => x.Id);
}); });
#endregion #endregion
#region
builder.Entity<InstockOrder>(ent =>
{
ent.ToTable("t_wms_instock");
ent.HasKey(x => x.Id);
ent.HasMany(p => p.Details)
.WithOne()
.HasForeignKey(p => p.Fid)
.OnDelete(DeleteBehavior.Cascade);
});
builder.Entity<InstockOrderDetails>(ent =>
{
ent.ToTable("t_wms_instock_details");
ent.HasKey(x => x.Id);
});
# endregion
#region
builder.Entity<InstockTask>(ent =>
{
ent.ToTable("t_erp_instock_task");
ent.HasKey(x => x.Id);
ent.HasMany(p => p.Details)
.WithOne()
.HasForeignKey(p => p.Fid)
.OnDelete(DeleteBehavior.Cascade);
});
builder.Entity<InstockTaskDetails>(ent =>
{
ent.ToTable("t_erp_outstock_task_details");
ent.HasKey(x => x.Id);
});
# endregion
} }
public DbSet<ChangeBoxRecord> ChangeBoxRecord { get; set; } public DbSet<ChangeBoxRecord> ChangeBoxRecord { get; set; }
@@ -104,5 +140,9 @@ namespace WMS.Web.Repositories.Configuration
public DbSet<OutStock> OutStock { get; set; } public DbSet<OutStock> OutStock { get; set; }
public DbSet<OutStockTask> OutStockTask { get; set; } public DbSet<OutStockTask> OutStockTask { get; set; }
public DbSet<TakeStock> TakeStock { get; set; } public DbSet<TakeStock> TakeStock { get; set; }
public DbSet<InstockOrder> Instock { get; set; }
public DbSet<InstockTask> InstockTask { get; set; }
} }
} }