From 051715ed2d8d744a712f07269e1976ee1e496276 Mon Sep 17 00:00:00 2001 From: Administrator Date: Tue, 28 Jun 2022 17:13:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...AccountDbContextModelCreatingExtensions.cs | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs b/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs index d8e8a89d..fa0e809f 100644 --- a/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs +++ b/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 } + + + /// + /// M平台出库详表 + /// + /// + /// + private static void ConfigureErrorBill(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) + { + + builder.Entity(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 }); + }); + + } + /// /// 一汽轿车-出库单 ///