Browse Source

更新版本

FoShanPG
Administrator 2 years ago
parent
commit
051715ed2d
  1. 27
      src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs

27
src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs

@ -73,6 +73,7 @@ using Win.Sfs.SettleAccount.Entities.BT_Car;
using Win.Sfs.SettleAccount.Entities.WMS;
using Win.Sfs.SettleAccount.Entities.HQ_F;
using Win.Sfs.SettleAccount.Entities.UnHQSettleAccounts;
using Win.Sfs.SettleAccount.Errors;
namespace Win.Sfs.SettleAccount
{
@ -386,6 +387,7 @@ namespace Win.Sfs.SettleAccount
builder.ConfigureWmsDetailWithCodeReport(options);
builder.ConfigureWmsCustomerKanbanOutPut(options);
builder.ConfigureWmsCustomerKanbanOutPutDetial(options);
builder.ConfigureErrorBill(options);
#endregion
@ -442,6 +444,31 @@ namespace Win.Sfs.SettleAccount
}
/// <summary>
/// M平台出库详表
/// </summary>
/// <param name="builder"></param>
/// <param name="options"></param>
private static void ConfigureErrorBill(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options)
{
builder.Entity<ErrorBill>(b =>
{
b.ToTable($"{options.TablePrefix}_ErrorBill", options.Schema);
b.ConfigureByConvention();
b.Property(x => x.BillNum).IsRequired().HasMaxLength(CommonConsts.MaxCodeLength);
b.Property(x => x.WmsBillNum).IsRequired().HasMaxLength(CommonConsts.MaxCodeLength);
b.Property(x => x.CustomerMaterialCode).HasMaxLength(CommonConsts.MaxCodeLength);
b.Property(x => x.MaterialCode).HasMaxLength(CommonConsts.MaxCodeLength);
b.HasIndex(x => new { x.CustomerMaterialCode,x.BillNum });
});
}
/// <summary>
/// 一汽轿车-出库单
/// </summary>

Loading…
Cancel
Save