添加序列号记录

This commit is contained in:
18942506660
2023-11-08 16:50:30 +08:00
parent 98a7f3f68a
commit 3f124a12b9
10 changed files with 186 additions and 23 deletions

View File

@@ -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; }