添加序列号记录
This commit is contained in:
@@ -30,7 +30,7 @@ namespace WMS.Web.Repositories.Configuration
|
||||
}
|
||||
|
||||
protected override void OnModelCreating(ModelBuilder builder)
|
||||
{
|
||||
{
|
||||
|
||||
//改箱
|
||||
builder.Entity<ChangeBoxRecord>(ent =>
|
||||
@@ -48,7 +48,14 @@ namespace WMS.Web.Repositories.Configuration
|
||||
ent.ToTable("t_wms_movebox_record");
|
||||
ent.HasKey(x => x.Id);
|
||||
});
|
||||
|
||||
|
||||
//序列号操作记录
|
||||
builder.Entity<SerialNumberOperate>(ent =>
|
||||
{
|
||||
ent.ToTable("t_wms_serialnumberoperate");
|
||||
ent.HasKey(x => x.Id);
|
||||
});
|
||||
|
||||
#region 出库单
|
||||
builder.Entity<OutStock>(ent =>
|
||||
{
|
||||
@@ -66,7 +73,7 @@ namespace WMS.Web.Repositories.Configuration
|
||||
ent.HasKey(x => x.Id);
|
||||
});
|
||||
#endregion
|
||||
|
||||
|
||||
#region 出库任务单
|
||||
builder.Entity<OutStockTask>(ent =>
|
||||
{
|
||||
@@ -84,7 +91,7 @@ namespace WMS.Web.Repositories.Configuration
|
||||
ent.HasKey(x => x.Id);
|
||||
});
|
||||
#endregion
|
||||
|
||||
|
||||
#region 盘点单
|
||||
builder.Entity<TakeStock>(ent =>
|
||||
{
|
||||
@@ -223,6 +230,7 @@ namespace WMS.Web.Repositories.Configuration
|
||||
base.OnModelCreating(builder);
|
||||
}
|
||||
|
||||
public DbSet<SerialNumberOperate> SerialNumberOperate { get; set; }
|
||||
public DbSet<ChangeBoxRecord> ChangeBoxRecord { get; set; }
|
||||
public DbSet<MoveBoxRecord> MoveBoxRecord { get; set; }
|
||||
public DbSet<OutStock> OutStock { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user