|
|
@ -86,6 +86,8 @@ namespace WmsWebApi.EntityFrameworkCore |
|
|
|
|
|
|
|
ConfigureProductRecieve(builder); |
|
|
|
ConfigureWmsWebApiStockMove(builder); |
|
|
|
|
|
|
|
ConfigureTbStockMoves(builder); |
|
|
|
} |
|
|
|
|
|
|
|
private static void ConfigureTbOrder(ModelBuilder builder) |
|
|
@ -662,6 +664,16 @@ namespace WmsWebApi.EntityFrameworkCore |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
private static void ConfigureTbStockMoves(ModelBuilder builder) |
|
|
|
{ |
|
|
|
builder.Entity<TB_STOCK_MOVE>(b => |
|
|
|
{ |
|
|
|
b.ToTable("TB_STOCK_MOVE", WmsWebApiDbProperties.DbSchema); |
|
|
|
b.ConfigureByConvention(); |
|
|
|
b.Property(q => q.Id).HasColumnName("UID").ValueGeneratedOnAdd(); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
private static void ConfigureWmsWebApiStockMove(ModelBuilder builder) |
|
|
|
{ |
|
|
|
builder.Entity<WmsWebApiStockMoveDTO>(b => |
|
|
|