using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata; namespace MySystem.SpModels { public partial class WebCMSEntities : DbContext { public WebCMSEntities() { } public WebCMSEntities(DbContextOptions options) : base(options) { } public virtual DbSet ActivateRecord { get; set; } public virtual DbSet BindRecord { get; set; } public virtual DbSet ChangeBindRecord { get; set; } public virtual DbSet CustomerTableRecord { get; set; } public virtual DbSet KqActivate { get; set; } public virtual DbSet KqActivateCallBack { get; set; } public virtual DbSet KqMerchant { get; set; } public virtual DbSet KqTrade { get; set; } public virtual DbSet KqTradeCallBack { get; set; } public virtual DbSet KqTradeFlux { get; set; } public virtual DbSet KssBind { get; set; } public virtual DbSet KssFreeDeposit { get; set; } public virtual DbSet KssMerchant { get; set; } public virtual DbSet KssReturnDeposit { get; set; } public virtual DbSet KssStageRwd { get; set; } public virtual DbSet KssTradeFirst { get; set; } public virtual DbSet MerchantRecord { get; set; } public virtual DbSet Merchants { get; set; } public virtual DbSet ProfitRecord { get; set; } public virtual DbSet RightDic { get; set; } public virtual DbSet SysLog { get; set; } public virtual DbSet TradeFluxRecord { get; set; } public virtual DbSet TradeRecord { get; set; } public virtual DbSet UnBindRecord { get; set; } protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { if (!optionsBuilder.IsConfigured) { optionsBuilder.UseMySql(Library.ConfigurationManager.AppSettings["SpSqlConnStr"].ToString(), x => x.ServerVersion("5.7.17-mysql")); } } protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.Entity(entity => { entity.Property(e => e.Id).HasColumnType("int(11)"); entity.Property(e => e.ActivateDate).HasColumnType("datetime"); entity.Property(e => e.ActivateStatus) .HasColumnType("varchar(20)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.AgentNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.AssessMonth) .HasColumnType("varchar(8)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.AssessMonthCount) .HasColumnType("varchar(8)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.BizEnterName) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.BizEnterNo) .HasColumnType("varchar(16)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.ChannelSerial) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.CreateDate).HasColumnType("datetime"); entity.Property(e => e.Field1) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Field2) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Field3) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Field4) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Field5) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerIdcardNo) .HasColumnType("varchar(18)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerMobile) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerName) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerRealName) .HasColumnType("varchar(16)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerRegDate).HasColumnType("datetime"); entity.Property(e => e.ProductType) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.QueryCount).HasColumnType("int(11)"); entity.Property(e => e.Remark) .HasColumnType("varchar(64)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.SeoDescription) .HasColumnType("mediumtext") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.SeoKeyword) .HasColumnType("varchar(200)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.SeoTitle) .HasColumnType("varchar(100)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.SnNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Sort).HasColumnType("int(11)"); entity.Property(e => e.Status).HasColumnType("int(11)"); entity.Property(e => e.UpdateDate).HasColumnType("datetime"); }); modelBuilder.Entity(entity => { entity.HasIndex(e => new { e.MerSnNo, e.MerNo }) .HasName("BindRecordIndex"); entity.Property(e => e.Id).HasColumnType("int(11)"); entity.Property(e => e.AgentName) .HasColumnType("varchar(64)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.ChannelSerial) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.CreateDate).HasColumnType("datetime"); entity.Property(e => e.CreateTime).HasColumnType("datetime"); entity.Property(e => e.Field1) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Field2) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Field3) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Field4) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Field5) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerName) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerNewSnNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerOperateDate).HasColumnType("datetime"); entity.Property(e => e.MerOperateType) .HasColumnType("varchar(16)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerSnNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerStatus) .HasColumnType("varchar(16)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.ProductType) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.QueryCount).HasColumnType("int(11)"); entity.Property(e => e.Remark) .HasColumnType("varchar(64)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.SeoDescription) .HasColumnType("mediumtext") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.SeoKeyword) .HasColumnType("varchar(200)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.SeoTitle) .HasColumnType("varchar(100)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Sort).HasColumnType("int(11)"); entity.Property(e => e.Status).HasColumnType("int(11)"); entity.Property(e => e.UpdateDate).HasColumnType("datetime"); entity.Property(e => e.UpdateTime).HasColumnType("datetime"); }); modelBuilder.Entity(entity => { entity.Property(e => e.Id).HasColumnType("int(11)"); entity.Property(e => e.AgentName) .HasColumnType("varchar(64)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.AgentNo) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.ChannelSerial) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.ConfirmTime).HasColumnType("datetime"); entity.Property(e => e.CreateDate).HasColumnType("datetime"); entity.Property(e => e.CreateMan) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Field1) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Field2) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Field3) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Field4) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Field5) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerName) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerNewSnNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerSnNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.ProductType) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.QueryCount).HasColumnType("int(11)"); entity.Property(e => e.ReBindTime).HasColumnType("datetime"); entity.Property(e => e.Remark) .HasColumnType("varchar(64)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.SeoDescription) .HasColumnType("varchar(500)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.SeoKeyword) .HasColumnType("varchar(200)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.SeoTitle) .HasColumnType("varchar(100)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Sort).HasColumnType("int(11)"); entity.Property(e => e.Status).HasColumnType("int(11)"); entity.Property(e => e.UpdateDate).HasColumnType("datetime"); entity.Property(e => e.UpdateMan) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Version).HasColumnType("int(11)"); }); modelBuilder.Entity(entity => { entity.HasKey(e => e.TableEnName) .HasName("PRIMARY"); entity.Property(e => e.TableEnName) .HasColumnType("varchar(30)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.AddTableDate).HasColumnType("datetime"); entity.Property(e => e.CreateDate).HasColumnType("datetime"); }); modelBuilder.Entity(entity => { entity.HasKey(e => e.MerNo) .HasName("PRIMARY"); entity.Property(e => e.MerNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.ActName) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.ActNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.ActVerifyFlag) .HasColumnType("varchar(2)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.ActivateDate).HasColumnType("datetime"); entity.Property(e => e.ActivateStatus) .HasColumnType("varchar(2)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.AssessMonth) .HasColumnType("varchar(8)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.AssessMonthCount) .HasColumnType("varchar(8)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.BizEnterName) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.BizEnterNo) .HasColumnType("varchar(16)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.CreateTime).HasColumnType("datetime"); entity.Property(e => e.MerIdcardNo) .HasColumnType("varchar(18)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerMobile) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerName) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerRealName) .HasColumnType("varchar(16)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerRegDate).HasColumnType("datetime"); entity.Property(e => e.MerSnNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.ProductType) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Remark) .HasColumnType("varchar(64)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.SourceType) .HasColumnType("varchar(16)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.UpdateTime).HasColumnType("datetime"); }); modelBuilder.Entity(entity => { entity.HasKey(e => e.MerNo) .HasName("PRIMARY"); entity.Property(e => e.MerNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.ActVerifyFlag) .HasColumnType("varchar(2)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.ActivateDate).HasColumnType("datetime"); entity.Property(e => e.ActivateStatus) .HasColumnType("varchar(2)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.AssessMonth) .HasColumnType("varchar(8)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.AssessMonthCount) .HasColumnType("varchar(8)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.BizEnterName) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.BizEnterNo) .HasColumnType("varchar(16)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.CreateTime).HasColumnType("datetime"); entity.Property(e => e.MerIdcardNo) .HasColumnType("varchar(18)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerMobile) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerName) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerRealName) .HasColumnType("varchar(16)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerRegDate).HasColumnType("datetime"); entity.Property(e => e.MerSnNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.ProductType) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Remark) .HasColumnType("varchar(64)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.UpdateTime).HasColumnType("datetime"); }); modelBuilder.Entity(entity => { entity.HasKey(e => e.MerNo) .HasName("PRIMARY"); entity.Property(e => e.MerNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.BizEnterName) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.BizEnterNo) .HasColumnType("varchar(16)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.City) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.CreateTime).HasColumnType("datetime"); entity.Property(e => e.MerBindDate).HasColumnType("datetime"); entity.Property(e => e.MerIdcardNo) .HasColumnType("varchar(18)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerMobile) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerName) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerRealName) .HasColumnType("varchar(16)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerRegDate).HasColumnType("datetime"); entity.Property(e => e.MerSnNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.ProductType) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Province) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Remark) .HasColumnType("varchar(64)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.SourceType) .HasColumnType("varchar(16)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.UpdateTime).HasColumnType("datetime"); }); modelBuilder.Entity(entity => { entity.HasKey(e => e.MerNo) .HasName("PRIMARY"); entity.Property(e => e.MerNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.BankCardNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.BankCardType) .HasColumnType("varchar(16)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.BillType) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.BizEnterName) .HasColumnType("varchar(64)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.BizEnterNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.CreateTime).HasColumnType("datetime"); entity.Property(e => e.DigAmt).HasColumnType("decimal(18,2)"); entity.Property(e => e.DigAmtFlag) .HasColumnType("varchar(4)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.DigStatus) .HasColumnType("varchar(16)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.FeeAmount).HasColumnType("decimal(18,2)"); entity.Property(e => e.InputModel) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.KqTradeSeq) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerName) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.ProductType) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Remark) .HasColumnType("varchar(64)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.S0settleStatus) .HasColumnName("S0SettleStatus") .HasColumnType("varchar(16)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.SettleCostAmt).HasColumnType("decimal(18,2)"); entity.Property(e => e.SettleFee).HasColumnType("decimal(18,2)"); entity.Property(e => e.SettleFeeCostAmt).HasColumnType("decimal(18,2)"); entity.Property(e => e.SettleFeeRebateAmt).HasColumnType("decimal(18,2)"); entity.Property(e => e.SettleMethod) .HasColumnType("varchar(16)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.SettleRebateAmt).HasColumnType("decimal(18,2)"); entity.Property(e => e.SettleTotalFee).HasColumnType("decimal(18,2)"); entity.Property(e => e.SmallDouble) .HasColumnType("varchar(4)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.SourceType) .HasColumnType("varchar(16)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.TotalCostAmt).HasColumnType("decimal(18,2)"); entity.Property(e => e.TotalRebateAmt).HasColumnType("decimal(18,2)"); entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)"); entity.Property(e => e.TradeDate) .HasColumnType("varchar(8)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.TradeSnNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.TradeStatus) .HasColumnType("varchar(16)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.TradeTime) .HasColumnType("varchar(8)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.UpdateTime).HasColumnType("datetime"); }); modelBuilder.Entity(entity => { entity.HasKey(e => e.MerNo) .HasName("PRIMARY"); entity.Property(e => e.MerNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.BankAuthCode) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.BankCardType) .HasColumnType("varchar(16)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.CreateTime).HasColumnType("datetime"); entity.Property(e => e.DeviceType) .HasColumnType("varchar(16)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.DigAmt).HasColumnType("decimal(18,2)"); entity.Property(e => e.DigAmtFlag) .HasColumnType("varchar(4)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.DiscountRateFlag) .HasColumnType("varchar(16)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.ErrorCode) .HasColumnType("varchar(16)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.ErrorMsg) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.IsStoreCashier) .HasColumnType("varchar(16)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerMobile) .HasColumnType("varchar(11)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerName) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.ProductType) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.ReceiptType) .HasColumnType("varchar(16)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Remark) .HasColumnType("varchar(64)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.SerEntryMode) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)"); entity.Property(e => e.TradeDate) .HasColumnType("varchar(8)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.TradeReferNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.TradeSnNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.TradeStatus) .HasColumnName("Trade_status") .HasColumnType("varchar(16)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.TradeTime) .HasColumnType("varchar(8)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.TradeType) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.UpdateTime).HasColumnType("datetime"); }); modelBuilder.Entity(entity => { entity.HasKey(e => e.MerNo) .HasName("PRIMARY"); entity.Property(e => e.MerNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.BankCardNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.BankCardType) .HasColumnType("varchar(16)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.BillType) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.BizEnterName) .HasColumnType("varchar(64)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.BizEnterNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.CreateTime).HasColumnType("datetime"); entity.Property(e => e.DeviceNetwork) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.DigAmt).HasColumnType("decimal(18,2)"); entity.Property(e => e.DigAmtFlag) .HasColumnType("varchar(4)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.FeeAmount).HasColumnType("decimal(18,2)"); entity.Property(e => e.InputModel) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.KqTradeSeq) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerName) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.ProductType) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Remark) .HasColumnType("varchar(64)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.SettleFee).HasColumnType("decimal(18,2)"); entity.Property(e => e.SettleMethod) .HasColumnType("varchar(16)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.SmallDouble) .HasColumnType("varchar(4)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.SourceType) .HasColumnType("varchar(16)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.TerminalNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)"); entity.Property(e => e.TradeDate) .HasColumnType("varchar(8)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.TradeSnNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.TradeStatus) .HasColumnType("varchar(16)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.TradeTime) .HasColumnType("varchar(8)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.UpdateTime).HasColumnType("datetime"); }); modelBuilder.Entity(entity => { entity.HasKey(e => e.MerNo) .HasName("PRIMARY"); entity.Property(e => e.MerNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.AgentName) .HasColumnType("varchar(64)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.CreateTime).HasColumnType("datetime"); entity.Property(e => e.MerName) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerNewSnNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerOperateDate).HasColumnType("datetime"); entity.Property(e => e.MerOperateType) .HasColumnType("varchar(16)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerSnNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerStatus) .HasColumnType("varchar(16)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.ProductType) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Remark) .HasColumnType("varchar(64)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.UpdateTime).HasColumnType("datetime"); }); modelBuilder.Entity(entity => { entity.HasKey(e => e.MerNo) .HasName("PRIMARY"); entity.Property(e => e.MerNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.ActName) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.ActNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.AgentName) .HasColumnType("varchar(64)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.CreateTime).HasColumnType("datetime"); entity.Property(e => e.MerBindDate).HasColumnType("datetime"); entity.Property(e => e.MerName) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerSnNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.NewFlag) .HasColumnType("varchar(4)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.ProductType) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Remark) .HasColumnType("varchar(64)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.UpdateTime).HasColumnType("datetime"); }); modelBuilder.Entity(entity => { entity.Property(e => e.Id).HasColumnType("int(11)"); entity.Property(e => e.AgentName) .HasColumnType("varchar(64)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.City) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.CreateDate).HasColumnType("datetime"); entity.Property(e => e.CreateTime).HasColumnType("datetime"); entity.Property(e => e.MerAuditDate).HasColumnType("datetime"); entity.Property(e => e.MerIdcardNo) .HasColumnType("varchar(18)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerMobile) .HasColumnType("varchar(11)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerName) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerRealName) .HasColumnType("varchar(16)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerRegDate).HasColumnType("datetime"); entity.Property(e => e.MerStatus) .HasColumnType("varchar(16)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.ProductType) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Province) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.QueryCount).HasColumnType("int(11)"); entity.Property(e => e.Remark) .HasColumnType("varchar(64)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.SeoDescription) .HasColumnType("varchar(500)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.SeoKeyword) .HasColumnType("varchar(200)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.SeoTitle) .HasColumnType("varchar(100)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Sort).HasColumnType("int(11)"); entity.Property(e => e.Status).HasColumnType("int(11)"); entity.Property(e => e.UpdateDate).HasColumnType("datetime"); entity.Property(e => e.UpdateTime).HasColumnType("datetime"); }); modelBuilder.Entity(entity => { entity.HasKey(e => e.MerNo) .HasName("PRIMARY"); entity.Property(e => e.MerNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.ActName) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.ActNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.AgentName) .HasColumnType("varchar(64)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.CreateTime).HasColumnType("datetime"); entity.Property(e => e.IntervalDay).HasColumnType("int(11)"); entity.Property(e => e.MerDisposeDate).HasColumnType("datetime"); entity.Property(e => e.MerName) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerSnNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerStdDate).HasColumnType("datetime"); entity.Property(e => e.ProductType) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Remark) .HasColumnType("varchar(64)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.RetAmount).HasColumnType("decimal(18,2)"); entity.Property(e => e.RetFlag) .HasColumnType("varchar(4)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.RetOrderNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.UpdateTime).HasColumnType("datetime"); }); modelBuilder.Entity(entity => { entity.HasKey(e => e.MerNo) .HasName("PRIMARY"); entity.Property(e => e.MerNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.ActName) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.ActNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.AgentName) .HasColumnType("varchar(64)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.CreateTime).HasColumnType("datetime"); entity.Property(e => e.MerBindDate).HasColumnType("datetime"); entity.Property(e => e.MerName) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerSnNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerStdDate).HasColumnType("datetime"); entity.Property(e => e.MerStdStage) .HasColumnType("varchar(16)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerStdStatus) .HasColumnType("varchar(4)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.NewFlag) .HasColumnType("varchar(4)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.ProductType) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Remark) .HasColumnType("varchar(64)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.UpdateTime).HasColumnType("datetime"); }); modelBuilder.Entity(entity => { entity.HasKey(e => e.MerNo) .HasName("PRIMARY"); entity.Property(e => e.MerNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.ActName) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.ActNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.AgentName) .HasColumnType("varchar(64)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.CreateTime).HasColumnType("datetime"); entity.Property(e => e.MerBindDate).HasColumnType("datetime"); entity.Property(e => e.MerName) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerSnNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerStdDate).HasColumnType("datetime"); entity.Property(e => e.MerStdStatus) .HasColumnType("varchar(4)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.NewFlag) .HasColumnType("varchar(4)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.ProductType) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Remark) .HasColumnType("varchar(64)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.UpdateTime).HasColumnType("datetime"); }); modelBuilder.Entity(entity => { entity.Property(e => e.Id).HasColumnType("int(11)"); entity.Property(e => e.AgentName) .HasColumnType("varchar(64)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.AgentNo) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Areas) .HasColumnType("varchar(30)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.ChannelSerial) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.City) .HasColumnType("varchar(30)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.CreateDate).HasColumnType("datetime"); entity.Property(e => e.CreateTime).HasColumnType("datetime"); entity.Property(e => e.Field1) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Field2) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Field3) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Field4) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Field5) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.LegalIdCard) .HasColumnType("varchar(30)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.LegalName) .HasColumnType("varchar(30)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerName) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerNewSnNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerOperateDate).HasColumnType("datetime"); entity.Property(e => e.MerOperateType) .HasColumnType("varchar(16)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerSnNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerStatus) .HasColumnType("varchar(16)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.ProductType) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Province) .HasColumnType("varchar(30)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.QueryCount).HasColumnType("int(11)"); entity.Property(e => e.Remark) .HasColumnType("varchar(64)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.SeoDescription) .HasColumnType("varchar(500)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.SeoKeyword) .HasColumnType("varchar(200)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.SeoTitle) .HasColumnType("varchar(100)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Sort).HasColumnType("int(11)"); entity.Property(e => e.Status).HasColumnType("int(11)"); entity.Property(e => e.UpdateDate).HasColumnType("datetime"); entity.Property(e => e.UpdateTime).HasColumnType("datetime"); }); modelBuilder.Entity(entity => { entity.HasIndex(e => e.MerNo) .HasName("MerchantsIndex"); entity.Property(e => e.Id).HasColumnType("int(11)"); entity.Property(e => e.AgentName) .HasColumnType("varchar(64)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.AgentNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.City) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.CreateDate).HasColumnType("datetime"); entity.Property(e => e.CreateTime).HasColumnType("datetime"); entity.Property(e => e.Field1) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Field2) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Field3) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Field4) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Field5) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerAuditDate).HasColumnType("datetime"); entity.Property(e => e.MerIdcardNo) .HasColumnType("varchar(18)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerMobile) .HasColumnType("varchar(11)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerName) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerRealName) .HasColumnType("varchar(16)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerRegDate).HasColumnType("datetime"); entity.Property(e => e.MerStatus) .HasColumnType("varchar(16)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.ProductType) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Province) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.QueryCount).HasColumnType("int(11)"); entity.Property(e => e.Remark) .HasColumnType("varchar(64)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.SeoDescription) .HasColumnType("varchar(500)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.SeoKeyword) .HasColumnType("varchar(200)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.SeoTitle) .HasColumnType("varchar(100)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.SnNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Sort).HasColumnType("int(11)"); entity.Property(e => e.Status).HasColumnType("int(11)"); entity.Property(e => e.UpdateDate).HasColumnType("datetime"); entity.Property(e => e.UpdateTime).HasColumnType("datetime"); }); modelBuilder.Entity(entity => { entity.Property(e => e.Id).HasColumnType("int(11)"); entity.Property(e => e.ActualCouponAmt) .HasColumnName("actualCouponAmt") .HasColumnType("varchar(10)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.ActualIncomeAmt) .HasColumnName("actualIncomeAmt") .HasColumnType("varchar(20)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Amount) .HasColumnName("amount") .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.ApplyDay) .HasColumnName("applyDay") .HasColumnType("varchar(20)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.BalanceDirection) .HasColumnName("balanceDirection") .HasColumnType("varchar(10)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.CouponAmt) .HasColumnName("couponAmt") .HasColumnType("varchar(10)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.CreateDate).HasColumnType("datetime"); entity.Property(e => e.CreateTime) .HasColumnName("createTime") .HasColumnType("varchar(20)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.IncomeScale) .HasColumnName("incomeScale") .HasColumnType("varchar(10)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.OrderNo) .HasColumnName("orderNo") .HasColumnType("varchar(20)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.OrganizationName) .HasColumnName("organizationName") .HasColumnType("varchar(20)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.OrganizationNumber) .HasColumnName("organizationNumber") .HasColumnType("varchar(20)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.OriginalFee) .HasColumnName("originalFee") .HasColumnType("varchar(10)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.OriginalRate) .HasColumnName("originalRate") .HasColumnType("varchar(10)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.ProfitCost) .HasColumnName("profitCost") .HasColumnType("varchar(20)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.ProfitRate) .HasColumnName("profitRate") .HasColumnType("varchar(10)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.QueryCount).HasColumnType("int(11)"); entity.Property(e => e.RateFee) .HasColumnName("rateFee") .HasColumnType("varchar(20)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.RequestId) .HasColumnName("requestId") .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.SeoDescription) .HasColumnType("varchar(500)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.SeoKeyword) .HasColumnType("varchar(200)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.SeoTitle) .HasColumnType("varchar(100)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Sort).HasColumnType("int(11)"); entity.Property(e => e.Status).HasColumnType("int(11)"); entity.Property(e => e.TopOrgNo) .HasColumnName("topOrgNo") .HasColumnType("varchar(20)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.UpdateDate).HasColumnType("datetime"); entity.Property(e => e.ValueType) .HasColumnName("valueType") .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); }); modelBuilder.Entity(entity => { entity.Property(e => e.Id) .HasColumnName("ID") .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Icon) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MainDataList) .HasColumnType("bit(1)") .HasDefaultValueSql("b'0'"); entity.Property(e => e.MainMenu) .HasColumnType("bit(1)") .HasDefaultValueSql("b'0'"); entity.Property(e => e.MainStat) .HasColumnType("bit(1)") .HasDefaultValueSql("b'0'"); entity.Property(e => e.Name) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.RightLevel).HasColumnType("int(11)"); entity.Property(e => e.Sort).HasColumnType("int(11)"); entity.Property(e => e.Url) .HasColumnType("varchar(200)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); }); modelBuilder.Entity(entity => { entity.Property(e => e.Id).HasColumnType("int(11)"); entity.Property(e => e.Contents) .HasColumnType("varchar(200)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.CreateDate).HasColumnType("datetime"); entity.Property(e => e.CreateMan) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); }); modelBuilder.Entity(entity => { entity.Property(e => e.Id).HasColumnType("int(11)"); entity.Property(e => e.AgentNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.BankCardNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.BankCardType) .HasColumnType("varchar(16)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.BillType) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.BizEnterName) .HasColumnType("varchar(64)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.BizEnterNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.CreateDate).HasColumnType("datetime"); entity.Property(e => e.DeviceNetwork) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.DigAmt).HasColumnType("decimal(18,2)"); entity.Property(e => e.DigAmtFlag) .HasColumnType("varchar(4)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.FeeAmount).HasColumnType("decimal(18,2)"); entity.Property(e => e.Field1) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Field2) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Field3) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.InputModel) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.KqTradeSeq) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerName) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.ProductType) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.QueryCount).HasColumnType("int(11)"); entity.Property(e => e.SeoDescription) .HasColumnType("varchar(2000)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.SeoKeyword) .HasColumnType("varchar(200)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.SeoTitle) .HasColumnType("varchar(100)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.SettleFee).HasColumnType("decimal(18,2)"); entity.Property(e => e.SettleMethod) .HasColumnType("varchar(16)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.SmallDouble) .HasColumnType("varchar(4)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Sort).HasColumnType("int(11)"); entity.Property(e => e.SourceType) .HasColumnType("varchar(16)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Status).HasColumnType("int(11)"); entity.Property(e => e.TerminalNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)"); entity.Property(e => e.TradeDate) .HasColumnType("varchar(8)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.TradeSerialNo) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.TradeSnNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.TradeStatus) .HasColumnType("varchar(16)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.TradeTime) .HasColumnType("varchar(8)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.UpdateDate).HasColumnType("datetime"); }); modelBuilder.Entity(entity => { entity.HasIndex(e => new { e.TradeSnNo, e.ProductType, e.MerNo }) .HasName("TradeRecordIndex"); entity.Property(e => e.Id).HasColumnType("int(11)"); entity.Property(e => e.AgentNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.BankAuthCode) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.BankCardNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.BankCardType) .HasColumnType("varchar(16)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.ChannelSerial) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.CreateDate).HasColumnType("datetime"); entity.Property(e => e.DeviceType) .HasColumnType("varchar(16)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.DigAmt).HasColumnType("decimal(18,2)"); entity.Property(e => e.DigAmtFlag) .HasColumnType("varchar(4)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.DiscountRateFlag) .HasColumnType("varchar(16)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.ErrorCode) .HasColumnType("varchar(16)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.ErrorMsg) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Field1) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Field2) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Field3) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Field4) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Field5) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.IsStoreCashier) .HasColumnType("varchar(16)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerMobile) .HasColumnType("varchar(11)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerName) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerNo) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.ProductType) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.QueryCount).HasColumnType("int(11)"); entity.Property(e => e.ReceiptType) .HasColumnType("varchar(16)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Remark) .HasColumnType("varchar(64)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.SeoDescription) .HasColumnType("mediumtext") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.SeoKeyword) .HasColumnType("varchar(200)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.SeoTitle) .HasColumnType("varchar(100)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.SerEntryMode) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.SettleFee).HasColumnType("decimal(18,2)"); entity.Property(e => e.SettleMethod) .HasColumnType("varchar(16)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Sort).HasColumnType("int(11)"); entity.Property(e => e.Status).HasColumnType("int(11)"); entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)"); entity.Property(e => e.TradeDate) .HasColumnType("varchar(8)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.TradeReferNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.TradeSerialNo) .HasColumnType("varchar(100)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.TradeSnNo) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.TradeStatus) .HasColumnType("varchar(16)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.TradeTime) .HasColumnType("varchar(8)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.TradeType) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.UpdateDate).HasColumnType("datetime"); }); modelBuilder.Entity(entity => { entity.Property(e => e.Id).HasColumnType("int(11)"); entity.Property(e => e.AgentName) .HasColumnType("varchar(64)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.AgentNo) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.ChannelSerial) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.CreateDate).HasColumnType("datetime"); entity.Property(e => e.CreateMan) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Field1) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Field2) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Field3) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Field4) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Field5) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerName) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.MerSnNo) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.ProductType) .HasColumnType("varchar(32)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.QueryCount).HasColumnType("int(11)"); entity.Property(e => e.Remark) .HasColumnType("varchar(64)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.SeoDescription) .HasColumnType("varchar(500)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.SeoKeyword) .HasColumnType("varchar(200)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.SeoTitle) .HasColumnType("varchar(100)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Sort).HasColumnType("int(11)"); entity.Property(e => e.Status).HasColumnType("int(11)"); entity.Property(e => e.UnBindTime).HasColumnType("datetime"); entity.Property(e => e.UpdateDate).HasColumnType("datetime"); entity.Property(e => e.UpdateMan) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Version).HasColumnType("int(11)"); }); OnModelCreatingPartial(modelBuilder); } partial void OnModelCreatingPartial(ModelBuilder modelBuilder); } }