Browse Source

更新上下文基础数据

pull/1/head
学 赵 1 year ago
parent
commit
f0c9b7d074
  1. 7
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/appsettings.json
  2. 709
      code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs

7
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/appsettings.json

@ -4,7 +4,12 @@
}, },
"ConnectionStrings": { "ConnectionStrings": {
"Default": "Server=dev.ccwin-in.com,13319;Database=BJABP;User ID=ccwin-in;Password=Microsoft@2022;Trusted_Connection=False;TrustServerCertificate=True", "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": { "Serilog": {

709
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.Entities.UnHQSettleAccounts;
using Win.Sfs.SettleAccount.Errors; using Win.Sfs.SettleAccount.Errors;
using SettleAccount.Domain.BQ; using SettleAccount.Domain.BQ;
using System.DirectoryServices.ActiveDirectory;
namespace Win.Sfs.SettleAccount 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.ConfigureInvoice(options);
builder.ConfigureInvoiceVersion(options); //builder.ConfigureInvoiceVersion(options);
//大众准时化结算明细导入-已结 ////大众准时化结算明细导入-已结
builder.ConfigureSettleAccount(options); //builder.ConfigureSettleAccount(options);
builder.ConfigureSettleAccountVersion(options); //builder.ConfigureSettleAccountVersion(options);
//红旗主机场-未结明细-导入 ////红旗主机场-未结明细-导入
builder.ConfigureUnHQSettleAccount(options); //builder.ConfigureUnHQSettleAccount(options);
builder.ConfigureUnHQSettleAccountVersion(options); //builder.ConfigureUnHQSettleAccountVersion(options);
builder.ConfigureWmsDetailReport(options); //builder.ConfigureWmsDetailReport(options);
builder.ConfigureWmsDetailDiffReport(options); //builder.ConfigureWmsDetailDiffReport(options);
builder.ConfigureWmsDetailCancelReport(options); //builder.ConfigureWmsDetailCancelReport(options);
//有条码 //有条码
builder.ConfigureWmsDetailWithCodeReport(options); //builder.ConfigureWmsDetailWithCodeReport(options);
builder.ConfigureErrorBill(options); builder.ConfigureErrorBill(options);
@ -509,6 +550,650 @@ namespace Win.Sfs.SettleAccount
b.Property(x => x.ConcurrencyStamp).HasMaxLength(50); b.Property(x => x.ConcurrencyStamp).HasMaxLength(50);
}); });
} }
private static void ConfigureBBAC_NOT_SA_DETAIL(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options)
{
builder.Entity<BBAC_NOT_SA_DETAIL>(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<BBAC_SA>(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<BBAC_SA_DETAIL>(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<BBAC_SE_DETAIL>(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<BBAC_SE_EDI>(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<BBAC_SE_REPORT>(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<BBAC_SE_SA_REPORT>(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<HBPO_CAN_SA>(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<HBPO_CAN_SA_DETAIL>(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<HBPO_NOT_SA_DETAIL>(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<HBPO_PD_DETAIL>(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<HBPO_SA>(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<HBPO_SA_DETAIL>(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<HBPO_SE_DETAIL>(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<HBPO_SE_EDI>(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<HBPO_SE_REPORT>(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<HBPO_SE_SA_REPORT>(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<INVOICE_GRP>(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<INVOICE_MAP_GROUP>(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<INVOICE_NOT_SETTLE>(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<INVOICE_WAIT_DETAIL>(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<JIT_SE_SA_REPORT>(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<PUB_CAN_SA>(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<PUB_CAN_SA_DETAIL>(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<PUB_NOT_SA_DETAIL>(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<PUB_PD_DETAIL>(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<PUB_SA>(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<PUB_SA_DETAIL>(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<PUB_SE_DETAIL>(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);
});
}

Loading…
Cancel
Save