From f0c9b7d074fc1e1adc66e04c5cbdee2783fc20b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A6=20=E8=B5=B5?= <89237069@qq.com> Date: Mon, 10 Jul 2023 11:13:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=B8=8A=E4=B8=8B=E6=96=87?= =?UTF-8?q?=E5=9F=BA=E7=A1=80=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../appsettings.json | 9 +- ...AccountDbContextModelCreatingExtensions.cs | 709 +++++++++++++++++- 2 files changed, 704 insertions(+), 14 deletions(-) diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/appsettings.json b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/appsettings.json index 29dfea13..434bb5aa 100644 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/appsettings.json +++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/appsettings.json @@ -4,7 +4,12 @@ }, "ConnectionStrings": { "Default": "Server=dev.ccwin-in.com,13319;Database=BJABP;User ID=ccwin-in;Password=Microsoft@2022;Trusted_Connection=False;TrustServerCertificate=True", - "SettleAccountService": "Server=dev.ccwin-in.com,13319;Database=SettleAccountService;User ID=ccwin-in;Password=Microsoft@2022;Trusted_Connection=False;TrustServerCertificate=True;" + "SettleAccountService": "Server=dev.ccwin-in.com,13319;Database=SettleAccountService;User ID=ccwin-in;Password=Microsoft@2022;Trusted_Connection=False;TrustServerCertificate=True;", + + + + + }, "Serilog": { @@ -85,4 +90,4 @@ } -} \ No newline at end of file +} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs index 781c867a..0e99c015 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs @@ -45,6 +45,7 @@ using Win.Sfs.SettleAccount.Entities.SecMatch; using Win.Sfs.SettleAccount.Entities.UnHQSettleAccounts; using Win.Sfs.SettleAccount.Errors; using SettleAccount.Domain.BQ; +using System.DirectoryServices.ActiveDirectory; namespace Win.Sfs.SettleAccount { @@ -68,29 +69,69 @@ namespace Win.Sfs.SettleAccount + builder.ConfigureBBAC_CAN_SA(options); + builder.ConfigureBBAC_CAN_SA_DETAIL(options); + builder.ConfigureBBAC_NOT_SA_DETAIL(options); + builder.ConfigureBBAC_PD_DETAIL(options); + builder.ConfigureBBAC_SA(options); + builder.ConfigureBBAC_SA_DETAIL(options); + builder.ConfigureBBAC_SE_DETAIL(options); + builder.ConfigureBBAC_SE_EDI(options); + builder.ConfigureBBAC_SE_REPORT(options); + builder.ConfigureBBAC_SE_SA_REPORT(options); + builder.ConfigureHBPO_CAN_SA(options); + builder.ConfigureHBPO_CAN_SA_DETAIL(options); + builder.ConfigureHBPO_NOT_SA_DETAIL(options); + builder.ConfigureHBPO_PD_DETAIL(options); + builder.ConfigureHBPO_SA(options); + builder.ConfigureHBPO_SA_DETAIL(options); + builder.ConfigureHBPO_SE_DETAIL(options); + builder.ConfigureHBPO_SE_EDI(options); + builder.ConfigureHBPO_SE_REPORT(options); + builder.ConfigureHBPO_SE_SA_REPORT(options); + builder.ConfigureINVOICE_GRP(options); + builder.ConfigureINVOICE_MAP_GROUP(options); + builder.ConfigureINVOICE_NOT_SETTLE(options); + builder.ConfigureINVOICE_WAIT_DETAIL(options); + builder.ConfigureJIT_SE_SA_REPORT(options); + //builder.ConfigureM_PD_DETAIL(options); + builder.ConfigurePUB_CAN_SA(options); + builder.ConfigurePUB_CAN_SA_DETAIL(options); + builder.ConfigurePUB_NOT_SA_DETAIL(options); + builder.ConfigurePUB_PD_DETAIL(options); + builder.ConfigurePUB_SA(options); + builder.ConfigurePUB_SA_DETAIL(options); + builder.ConfigurePUB_SE_DETAIL(options); + + + + + + + //大众发票导入 - builder.ConfigureInvoice(options); - builder.ConfigureInvoiceVersion(options); + //builder.ConfigureInvoice(options); + //builder.ConfigureInvoiceVersion(options); - //大众准时化结算明细导入-已结 - builder.ConfigureSettleAccount(options); - builder.ConfigureSettleAccountVersion(options); + ////大众准时化结算明细导入-已结 + //builder.ConfigureSettleAccount(options); + //builder.ConfigureSettleAccountVersion(options); - //红旗主机场-未结明细-导入 - builder.ConfigureUnHQSettleAccount(options); - builder.ConfigureUnHQSettleAccountVersion(options); + ////红旗主机场-未结明细-导入 + //builder.ConfigureUnHQSettleAccount(options); + //builder.ConfigureUnHQSettleAccountVersion(options); - builder.ConfigureWmsDetailReport(options); - builder.ConfigureWmsDetailDiffReport(options); - builder.ConfigureWmsDetailCancelReport(options); + //builder.ConfigureWmsDetailReport(options); + //builder.ConfigureWmsDetailDiffReport(options); + //builder.ConfigureWmsDetailCancelReport(options); //有条码 - builder.ConfigureWmsDetailWithCodeReport(options); + //builder.ConfigureWmsDetailWithCodeReport(options); builder.ConfigureErrorBill(options); @@ -509,6 +550,650 @@ namespace Win.Sfs.SettleAccount b.Property(x => x.ConcurrencyStamp).HasMaxLength(50); }); } + + + private static void ConfigureBBAC_NOT_SA_DETAIL(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) + { + + builder.Entity(b => + { + + b.ToTable($"{options.TablePrefix}_BBAC_NOT_SA_DETAIL", options.Schema); + + b.ConfigureByConvention(); + b.Property(x => x.Site).HasMaxLength(50); + b.Property(x => x.Category).HasMaxLength(50); + b.Property(x => x.IsReturn).HasMaxLength(50); + b.Property(x => x.SettleBillNum).HasMaxLength(50); + b.Property(x => x.InvGroupNum).HasMaxLength(50); + b.Property(x => x.LU).HasMaxLength(50); + b.Property(x => x.PN).HasMaxLength(50); + b.Property(x => x.KeyCode).HasMaxLength(50); + b.Property(x => x.GroupNum).HasMaxLength(50); + b.Property(x => x.ConcurrencyStamp).HasMaxLength(50); + }); + } + private static void ConfigureBBAC_SA(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) + { + + builder.Entity(b => + { + + b.ToTable($"{options.TablePrefix}_BBAC_SA", options.Schema); + + b.ConfigureByConvention(); + b.Property(x => x.BillNum).HasMaxLength(50); + b.Property(x => x.DNBillNum).HasMaxLength(50); + b.Property(x => x.State).HasMaxLength(50); + b.Property(x => x.ConcurrencyStamp).HasMaxLength(50); + }); + } + private static void ConfigureBBAC_SA_DETAIL(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) + { + + builder.Entity(b => + { + + b.ToTable($"{options.TablePrefix}_BBAC_SA_DETAIL", options.Schema); + + b.ConfigureByConvention(); + b.Property(x => x.Site).HasMaxLength(50); + b.Property(x => x.Category).HasMaxLength(50); + b.Property(x => x.IsReturn).HasMaxLength(50); + b.Property(x => x.BillNum).HasMaxLength(50); + b.Property(x => x.LU).HasMaxLength(50); + b.Property(x => x.PN).HasMaxLength(50); + b.Property(x => x.KeyCode).HasMaxLength(50); + b.Property(x => x.GroupNum).HasMaxLength(50); + b.Property(x => x.ConcurrencyStamp).HasMaxLength(50); + }); + } + private static void ConfigureBBAC_SE_DETAIL(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) + { + + builder.Entity(b => + { + + b.ToTable($"{options.TablePrefix}_BBAC_SE_DETAIL", options.Schema); + + b.ConfigureByConvention(); + b.Property(x => x.SeqNumber).HasMaxLength(50); + b.Property(x => x.AssemblyCode).HasMaxLength(50); + b.Property(x => x.InjectionCode).HasMaxLength(50); + b.Property(x => x.WmsBillNum).HasMaxLength(50); + b.Property(x => x.LU).HasMaxLength(50); + b.Property(x => x.PN).HasMaxLength(50); + b.Property(x => x.KeyCode).HasMaxLength(50); + b.Property(x => x.ConcurrencyStamp).HasMaxLength(50); + }); + } + + private static void ConfigureBBAC_SE_EDI(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) + { + + builder.Entity(b => + { + + b.ToTable($"{options.TablePrefix}_BBAC_SE_EDI", options.Schema); + + b.ConfigureByConvention(); + b.Property(x => x.KeyCode).HasMaxLength(50); + b.Property(x => x.LU).HasMaxLength(50); + b.Property(x => x.PN).HasMaxLength(50); + b.Property(x => x.SeqNumber).HasMaxLength(50); + b.Property(x => x.AssemblyCode).HasMaxLength(50); + b.Property(x => x.InjectionCode).HasMaxLength(50); + b.Property(x => x.ConcurrencyStamp).HasMaxLength(50); + }); + } + + private static void ConfigureBBAC_SE_REPORT(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) + { + + builder.Entity(b => + { + + b.ToTable($"{options.TablePrefix}_BBAC_SE_REPORT", options.Schema); + + b.ConfigureByConvention(); + b.Property(x => x.KeyCode).HasMaxLength(50); + b.Property(x => x.LU).HasMaxLength(50); + b.Property(x => x.PN).HasMaxLength(50); + b.Property(x => x.SeqNumber).HasMaxLength(50); + b.Property(x => x.AssemblyCode).HasMaxLength(50); + b.Property(x => x.InjectionCode).HasMaxLength(50); + b.Property(x => x.WmsBillNum).HasMaxLength(50); + b.Property(x => x.ConcurrencyStamp).HasMaxLength(50); + }); + } + private static void ConfigureBBAC_SE_SA_REPORT(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) + { + + builder.Entity(b => + { + + b.ToTable($"{options.TablePrefix}_BBAC_SE_SA_REPORT", options.Schema); + + b.ConfigureByConvention(); + b.Property(x => x.KeyCode).HasMaxLength(50); + b.Property(x => x.Category).HasMaxLength(50); + b.Property(x => x.WmsBillNum).HasMaxLength(50); + b.Property(x => x.PN).HasMaxLength(50); + b.Property(x => x.SeqNumber).HasMaxLength(50); + b.Property(x => x.PJISSeqNumber).HasMaxLength(50); + b.Property(x => x.MaterialNumber).HasMaxLength(50); + b.Property(x => x.MaterialDes).HasMaxLength(50); + b.Property(x => x.LU).HasMaxLength(50); + b.Property(x => x.AssemblyCode).HasMaxLength(50); + b.Property(x => x.InjectionCode).HasMaxLength(50); + b.Property(x => x.MateType).HasMaxLength(50); + b.Property(x => x.ConcurrencyStamp).HasMaxLength(50); + }); + } + private static void ConfigureHBPO_CAN_SA(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) + { + + builder.Entity(b => + { + + b.ToTable($"{options.TablePrefix}_HBPO_CAN_SA", options.Schema); + + b.ConfigureByConvention(); + b.Property(x => x.SettleBillNum).HasMaxLength(50); + b.Property(x => x.BillNum).HasMaxLength(50); + b.Property(x => x.State).HasMaxLength(50); + b.Property(x => x.InvGroupNum).HasMaxLength(50); + b.Property(x => x.ConcurrencyStamp).HasMaxLength(50); + }); + } + + private static void ConfigureHBPO_CAN_SA_DETAIL(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) + { + + builder.Entity(b => + { + + b.ToTable($"{options.TablePrefix}_HBPO_CAN_SA_DETAIL", options.Schema); + + b.ConfigureByConvention(); + b.Property(x => x.SettleBillNum).HasMaxLength(50); + b.Property(x => x.Site).HasMaxLength(50); + b.Property(x => x.BillNum).HasMaxLength(50); + b.Property(x => x.InvGroupNum).HasMaxLength(50); + b.Property(x => x.LU).HasMaxLength(50); + b.Property(x => x.PN).HasMaxLength(50); + b.Property(x => x.KeyCode).HasMaxLength(50); + b.Property(x => x.GroupNum).HasMaxLength(50); + b.Property(x => x.ConcurrencyStamp).HasMaxLength(50); + }); + } + + private static void ConfigureHBPO_NOT_SA_DETAIL(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) + { + + builder.Entity(b => + { + + b.ToTable($"{options.TablePrefix}_HBPO_NOT_SA_DETAIL", options.Schema); + + b.ConfigureByConvention(); + b.Property(x => x.Site).HasMaxLength(50); + b.Property(x => x.SettleBillNum).HasMaxLength(50); + b.Property(x => x.InvGroupNum).HasMaxLength(50); + b.Property(x => x.LU).HasMaxLength(50); + b.Property(x => x.PN).HasMaxLength(50); + b.Property(x => x.KeyCode).HasMaxLength(50); + b.Property(x => x.GroupNum).HasMaxLength(50); + b.Property(x => x.ConcurrencyStamp).HasMaxLength(50); + }); + } + private static void ConfigureHBPO_PD_DETAIL(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) + { + + builder.Entity(b => + { + + b.ToTable($"{options.TablePrefix}_HBPO_PD_DETAIL", options.Schema); + + b.ConfigureByConvention(); + b.Property(x => x.Site).HasMaxLength(50); + b.Property(x => x.BillNum).HasMaxLength(50); + b.Property(x => x.InvGroupNum).HasMaxLength(50); + b.Property(x => x.GroupNum).HasMaxLength(50); + b.Property(x => x.LU).HasMaxLength(50); + b.Property(x => x.PN).HasMaxLength(50); + b.Property(x => x.RELU).HasMaxLength(50); + b.Property(x => x.REPN).HasMaxLength(50); + b.Property(x => x.KeyCode).HasMaxLength(50); + b.Property(x => x.ConcurrencyStamp).HasMaxLength(50); + }); + } + private static void ConfigureHBPO_SA(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) + { + + builder.Entity(b => + { + + b.ToTable($"{options.TablePrefix}_HBPO_SA", options.Schema); + + b.ConfigureByConvention(); + b.Property(x => x.BillNum).HasMaxLength(50); + b.Property(x => x.DNBillNum).HasMaxLength(50); + b.Property(x => x.State).HasMaxLength(50); + b.Property(x => x.RecordCount).HasMaxLength(50); + b.Property(x => x.ConcurrencyStamp).HasMaxLength(50); + }); + } + + private static void ConfigureHBPO_SA_DETAIL(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) + { + + builder.Entity(b => + { + + b.ToTable($"{options.TablePrefix}_HBPO_SA_DETAIL", options.Schema); + + b.ConfigureByConvention(); + b.Property(x => x.Site).HasMaxLength(50); + b.Property(x => x.InvGroupNum).HasMaxLength(50); + b.Property(x => x.BillNum).HasMaxLength(50); + b.Property(x => x.LU).HasMaxLength(50); + b.Property(x => x.PN).HasMaxLength(50); + b.Property(x => x.KeyCode).HasMaxLength(50); + b.Property(x => x.GroupNum).HasMaxLength(50); + b.Property(x => x.ConcurrencyStamp).HasMaxLength(50); + }); + } + private static void ConfigureHBPO_SE_DETAIL(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) + { + + builder.Entity(b => + { + + b.ToTable($"{options.TablePrefix}_HBPO_SE_DETAIL", options.Schema); + + b.ConfigureByConvention(); + b.Property(x => x.SeqNumber).HasMaxLength(50); + b.Property(x => x.AssemblyCode).HasMaxLength(50); + b.Property(x => x.InjectionCode).HasMaxLength(50); + b.Property(x => x.WmsBillNum).HasMaxLength(50); + b.Property(x => x.LU).HasMaxLength(50); + b.Property(x => x.PN).HasMaxLength(50); + b.Property(x => x.KeyCode).HasMaxLength(50); + b.Property(x => x.ConcurrencyStamp).HasMaxLength(50); + }); + } + private static void ConfigureHBPO_SE_EDI(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) + { + + builder.Entity(b => + { + + b.ToTable($"{options.TablePrefix}_HBPO_SE_EDI", options.Schema); + + b.ConfigureByConvention(); + b.Property(x => x.KeyCode).HasMaxLength(50); + b.Property(x => x.LU).HasMaxLength(50); + b.Property(x => x.PN).HasMaxLength(50); + b.Property(x => x.SeqNumber).HasMaxLength(50); + b.Property(x => x.AssemblyCode).HasMaxLength(50); + b.Property(x => x.InjectionCode).HasMaxLength(50); + b.Property(x => x.ConcurrencyStamp).HasMaxLength(50); + }); + } + + private static void ConfigureHBPO_SE_REPORT(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) + { + + builder.Entity(b => + { + + b.ToTable($"{options.TablePrefix}_HBPO_SE_REPORT", options.Schema); + + b.ConfigureByConvention(); + b.Property(x => x.KeyCode).HasMaxLength(50); + b.Property(x => x.LU).HasMaxLength(50); + b.Property(x => x.PN).HasMaxLength(50); + b.Property(x => x.SeqNumber).HasMaxLength(50); + b.Property(x => x.AssemblyCode).HasMaxLength(50); + b.Property(x => x.InjectionCode).HasMaxLength(50); + b.Property(x => x.WmsBillNum).HasMaxLength(50); + b.Property(x => x.ConcurrencyStamp).HasMaxLength(50); + }); + } + + + private static void ConfigureHBPO_SE_SA_REPORT(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) + { + + builder.Entity(b => + { + + b.ToTable($"{options.TablePrefix}_HBPO_SE_SA_REPORT", options.Schema); + + b.ConfigureByConvention(); + b.Property(x => x.Category).HasMaxLength(50); + b.Property(x => x.SeqNumber).HasMaxLength(50); + b.Property(x => x.PJISSeqNumber).HasMaxLength(50); + b.Property(x => x.MaterialNumber).HasMaxLength(50); + b.Property(x => x.MaterialDes).HasMaxLength(50); + b.Property(x => x.AssemblyCode).HasMaxLength(50); + b.Property(x => x.InjectionCode).HasMaxLength(50); + b.Property(x => x.MateType).HasMaxLength(50); + b.Property(x => x.WmsBillNum).HasMaxLength(50); + b.Property(x => x.LU).HasMaxLength(50); + b.Property(x => x.PN).HasMaxLength(50); + b.Property(x => x.KeyCode).HasMaxLength(50); + b.Property(x => x.ConcurrencyStamp).HasMaxLength(50); + }); + } + + + private static void ConfigureINVOICE_GRP(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) + { + + builder.Entity(b => + { + + b.ToTable($"{options.TablePrefix}_INVOICE_GRP", options.Schema); + + b.ConfigureByConvention(); + b.Property(x => x.RealnvBillNum).HasMaxLength(50); + b.Property(x => x.InvbillNum).HasMaxLength(50); + b.Property(x => x.InvGroupNum).HasMaxLength(50); + b.Property(x => x.FileName).HasMaxLength(50); + b.Property(x => x.BusinessType).HasMaxLength(50); + b.Property(x => x.ConcurrencyStamp).HasMaxLength(50); + }); + } + private static void ConfigureINVOICE_MAP_GROUP(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) + { + + builder.Entity(b => + { + + b.ToTable($"{options.TablePrefix}_INVOICE_MAP_GROUP", options.Schema); + + b.ConfigureByConvention(); + b.Property(x => x.InvbillNum).HasMaxLength(50); + b.Property(x => x.InvGroupNum).HasMaxLength(50); + b.Property(x => x.SettleGroupNum).HasMaxLength(50); + b.Property(x => x.Extend1).HasMaxLength(50); + b.Property(x => x.Extend2).HasMaxLength(50); + b.Property(x => x.ConcurrencyStamp).HasMaxLength(50); + }); + } + private static void ConfigureINVOICE_NOT_SETTLE(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) + { + + builder.Entity(b => + { + + b.ToTable($"{options.TablePrefix}_INVOICE_NOT_SETTLE", options.Schema); + + b.ConfigureByConvention(); + b.Property(x => x.InvGroupNum).HasMaxLength(50); + b.Property(x => x.SettleGroupNum).HasMaxLength(50); + b.Property(x => x.LU).HasMaxLength(50); + b.Property(x => x.LU1).HasMaxLength(50); + b.Property(x => x.Extend1).HasMaxLength(50); + b.Property(x => x.Extend2).HasMaxLength(50); + b.Property(x => x.ConcurrencyStamp).HasMaxLength(50); + }); + } + + private static void ConfigureINVOICE_WAIT_DETAIL(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) + { + + builder.Entity(b => + { + + b.ToTable($"{options.TablePrefix}_INVOICE_WAIT_DETAIL", options.Schema); + + b.ConfigureByConvention(); + b.Property(x => x.InvbillNum).HasMaxLength(50); + b.Property(x => x.InvGroupNum).HasMaxLength(50); + b.Property(x => x.LU).HasMaxLength(50); + b.Property(x => x.BussiessType).HasMaxLength(50); + b.Property(x => x.Extend1).HasMaxLength(50); + b.Property(x => x.Extend2).HasMaxLength(50); + b.Property(x => x.Extend3).HasMaxLength(50); + b.Property(x => x.Extend4).HasMaxLength(50); + b.Property(x => x.ConcurrencyStamp).HasMaxLength(50); + }); + } + + private static void ConfigureJIT_SE_SA_REPORT(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) + { + + builder.Entity(b => + { + + b.ToTable($"{options.TablePrefix}_JIT_SE_SA_REPORT", options.Schema); + + b.ConfigureByConvention(); + b.Property(x => x.Category).HasMaxLength(50); + b.Property(x => x.SeqNumber).HasMaxLength(50); + b.Property(x => x.PJISSeqNumber).HasMaxLength(50); + b.Property(x => x.MaterialNumber).HasMaxLength(50); + b.Property(x => x.MaterialDes).HasMaxLength(50); + b.Property(x => x.AssemblyCode).HasMaxLength(50); + b.Property(x => x.InjectionCode).HasMaxLength(50); + b.Property(x => x.MateType).HasMaxLength(50); + b.Property(x => x.WmsBillNum).HasMaxLength(50); + b.Property(x => x.LU).HasMaxLength(50); + b.Property(x => x.PN).HasMaxLength(50); + b.Property(x => x.KeyCode).HasMaxLength(50); + b.Property(x => x.ConcurrencyStamp).HasMaxLength(50); + }); + } + + private static void ConfigurePUB_CAN_SA(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) + { + + builder.Entity(b => + { + + b.ToTable($"{options.TablePrefix}_PUB_CAN_SA", options.Schema); + + b.ConfigureByConvention(); + b.Property(x => x.SettleBillNum).HasMaxLength(50); + b.Property(x => x.BillNum).HasMaxLength(50); + b.Property(x => x.BusinessType).HasMaxLength(50); + b.Property(x => x.InvGroupNum).HasMaxLength(50); + b.Property(x => x.ConcurrencyStamp).HasMaxLength(50); + }); + } + + + private static void ConfigurePUB_CAN_SA_DETAIL(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) + { + + builder.Entity(b => + { + + b.ToTable($"{options.TablePrefix}_PUB_CAN_SA_DETAIL", options.Schema); + + b.ConfigureByConvention(); + b.Property(x => x.SettleBillNum).HasMaxLength(50); + b.Property(x => x.Site).HasMaxLength(50); + b.Property(x => x.BusinessType).HasMaxLength(50); + b.Property(x => x.BillNum).HasMaxLength(50); + b.Property(x => x.InvGroupNum).HasMaxLength(50); + b.Property(x => x.LU).HasMaxLength(50); + b.Property(x => x.PN).HasMaxLength(50); + b.Property(x => x.KeyCode).HasMaxLength(50); + b.Property(x => x.GroupNum).HasMaxLength(50); + b.Property(x => x.ConcurrencyStamp).HasMaxLength(50); + }); + } + + + private static void ConfigurePUB_NOT_SA_DETAIL(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) + { + + builder.Entity(b => + { + + b.ToTable($"{options.TablePrefix}_PUB_NOT_SA_DETAIL", options.Schema); + + b.ConfigureByConvention(); + b.Property(x => x.Site).HasMaxLength(50); + b.Property(x => x.Extend1).HasMaxLength(50); + b.Property(x => x.Extend2).HasMaxLength(50); + b.Property(x => x.Extend3).HasMaxLength(50); + b.Property(x => x.BusinessType).HasMaxLength(50); + b.Property(x => x.SettleBillNum).HasMaxLength(50); + b.Property(x => x.InvGroupNum).HasMaxLength(50); + b.Property(x => x.LU).HasMaxLength(50); + b.Property(x => x.PN).HasMaxLength(50); + b.Property(x => x.KeyCode).HasMaxLength(50); + b.Property(x => x.GroupNum).HasMaxLength(50); + b.Property(x => x.ConcurrencyStamp).HasMaxLength(50); + }); + } + private static void ConfigurePUB_PD_DETAIL(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) + { + + builder.Entity(b => + { + + b.ToTable($"{options.TablePrefix}_PUB_PD_DETAIL", options.Schema); + + b.ConfigureByConvention(); + b.Property(x => x.Site).HasMaxLength(50); + b.Property(x => x.BusinessType).HasMaxLength(50); + b.Property(x => x.BillNum).HasMaxLength(50); + b.Property(x => x.InvGroupNum).HasMaxLength(50); + b.Property(x => x.GroupNum).HasMaxLength(50); + b.Property(x => x.LU).HasMaxLength(50); + b.Property(x => x.PN).HasMaxLength(50); + b.Property(x => x.RELU).HasMaxLength(50); + b.Property(x => x.REPN).HasMaxLength(50); + b.Property(x => x.KeyCode).HasMaxLength(50); + b.Property(x => x.ConcurrencyStamp).HasMaxLength(50); + }); + } + private static void ConfigurePUB_SA(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) + { + + builder.Entity(b => + { + + b.ToTable($"{options.TablePrefix}_PUB_SA", options.Schema); + + b.ConfigureByConvention(); + b.Property(x => x.BillNum).HasMaxLength(50); + b.Property(x => x.State).HasMaxLength(50); + b.Property(x => x.ConcurrencyStamp).HasMaxLength(50); + }); + } + private static void ConfigurePUB_SA_DETAIL(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) + { + + builder.Entity(b => + { + + b.ToTable($"{options.TablePrefix}_PUB_SA_DETAIL", options.Schema); + + b.ConfigureByConvention(); + b.Property(x => x.Site).HasMaxLength(50); + b.Property(x => x.Extend1).HasMaxLength(50); + b.Property(x => x.Extend2).HasMaxLength(50); + b.Property(x => x.Extend3).HasMaxLength(50); + b.Property(x => x.BillNum).HasMaxLength(50); + b.Property(x => x.LU).HasMaxLength(50); + b.Property(x => x.PN).HasMaxLength(50); + b.Property(x => x.KeyCode).HasMaxLength(50); + b.Property(x => x.GroupNum).HasMaxLength(50); + b.Property(x => x.ConcurrencyStamp).HasMaxLength(50); + }); + } + private static void ConfigurePUB_SE_DETAIL(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) + { + + builder.Entity(b => + { + + b.ToTable($"{options.TablePrefix}_PUB_SE_DETAIL", options.Schema); + + b.ConfigureByConvention(); + b.Property(x => x.Extend1).HasMaxLength(50); + b.Property(x => x.Extend2).HasMaxLength(50); + b.Property(x => x.Extend3).HasMaxLength(50); + b.Property(x => x.BusinessType).HasMaxLength(50); + b.Property(x => x.WmsBillNum).HasMaxLength(50); + b.Property(x => x.LU).HasMaxLength(50); + b.Property(x => x.PN).HasMaxLength(50); + b.Property(x => x.KeyCode).HasMaxLength(50); + b.Property(x => x.ConcurrencyStamp).HasMaxLength(50); + }); + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +