| | |
| | | public virtual DbSet<CusFangwenjilu> CusFangwenjilus { get; set; } |
| | | public virtual DbSet<FiAccount> FiAccounts { get; set; } |
| | | public virtual DbSet<FiAccountRecord> FiAccountRecords { get; set; } |
| | | public virtual DbSet<FiCustomerrecievemoney> FiCustomerrecievemoneys { get; set; } |
| | | public virtual DbSet<FiOrderrecievemoney> FiOrderrecievemoneys { get; set; } |
| | | public virtual DbSet<FiPiecerate> FiPiecerates { get; set; } |
| | | public virtual DbSet<FiSubject> FiSubjects { get; set; } |
| | |
| | | public virtual DbSet<TComplaintItem> TComplaintItems { get; set; } |
| | | public virtual DbSet<TComplaintRespondent> TComplaintRespondents { get; set; } |
| | | public virtual DbSet<TComplaintletter> TComplaintletters { get; set; } |
| | | public virtual DbSet<TComplaintGongyingshang> TComplaintGongyingshangs { get; set; } |
| | | public virtual DbSet<TComplaintShouquandaibiao> TComplaintShouquandaibiaos { get; set; } |
| | | |
| | | |
| | | protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) |
| | |
| | | if (!optionsBuilder.IsConfigured) |
| | | { |
| | | #warning To protect potentially sensitive information in your connection string, you should move it out of source code. You can avoid scaffolding the connection string by using the Name= syntax to read it from configuration - see https://go.microsoft.com/fwlink/?linkid=2131148. For more guidance on storing connection strings, see http://go.microsoft.com/fwlink/?LinkId=723263. |
| | | optionsBuilder.UseSqlServer("Data Source=.;Initial Catalog=zhengcaioa;User ID=sa;Password=123456"); |
| | | optionsBuilder.UseSqlServer("Data Source=172.26.97.147;Initial Catalog=zhengcaioa;User ID=sa;Password=Za20222812"); |
| | | } |
| | | } |
| | | |
| | |
| | | .HasMaxLength(50) |
| | | .HasColumnName("ywjl") |
| | | .HasComment("业务经理"); |
| | | |
| | | entity.Property(e => e.Yufukuan) |
| | | .HasColumnType("money") |
| | | .HasColumnName("yufukuan"); |
| | | |
| | | entity.Property(e => e.Shouxinedu) |
| | | .HasColumnType("money") |
| | | .HasColumnName("shouxinedu"); |
| | | |
| | | entity.Property(e => e.Shenyushouxin) |
| | | .HasColumnType("money") |
| | | .HasColumnName("shenyushouxin"); |
| | | }); |
| | | |
| | | modelBuilder.Entity<CusFangwenjilu>(entity => |
| | |
| | | entity.Property(e => e.RecordTypeId).HasMaxLength(50); |
| | | |
| | | entity.Property(e => e.Remark).HasMaxLength(500); |
| | | |
| | | entity.Property(e => e.SubjectId).HasMaxLength(50); |
| | | }); |
| | | |
| | | modelBuilder.Entity<FiCustomerrecievemoney>(entity => |
| | | { |
| | | entity.ToTable("fi_Customerrecievemoney"); |
| | | |
| | | entity.Property(e => e.Id).HasMaxLength(50); |
| | | |
| | | entity.Property(e => e.AccountId).HasMaxLength(50); |
| | | |
| | | entity.Property(e => e.Creater) |
| | | .IsRequired() |
| | | .HasMaxLength(50) |
| | | .HasColumnName("creater") |
| | | .HasDefaultValueSql("('1')"); |
| | | |
| | | entity.Property(e => e.Createtime) |
| | | .HasColumnType("datetime") |
| | | .HasColumnName("createtime") |
| | | .HasDefaultValueSql("(getdate())"); |
| | | |
| | | entity.Property(e => e.CustomerId) |
| | | .HasMaxLength(50) |
| | | .HasComment("客户id"); |
| | | |
| | | entity.Property(e => e.Modifier) |
| | | .IsRequired() |
| | | .HasMaxLength(50) |
| | | .HasColumnName("modifier") |
| | | .HasDefaultValueSql("('1')"); |
| | | |
| | | entity.Property(e => e.Modifytime) |
| | | .HasColumnType("datetime") |
| | | .HasColumnName("modifytime") |
| | | .HasDefaultValueSql("(getdate())"); |
| | | |
| | | entity.Property(e => e.PayTime) |
| | | .HasColumnType("datetime") |
| | | .HasColumnName("pay_time") |
| | | .HasDefaultValueSql("(getdate())") |
| | | .HasComment("收款日期"); |
| | | |
| | | entity.Property(e => e.PayType) |
| | | .HasMaxLength(50) |
| | | .HasColumnName("pay_type") |
| | | .HasComment("收款方式"); |
| | | |
| | | entity.Property(e => e.RecStatus) |
| | | .IsRequired() |
| | | .HasMaxLength(1) |
| | | .HasColumnName("rec_status") |
| | | .HasDefaultValueSql("('A')"); |
| | | |
| | | entity.Property(e => e.Recievemoney) |
| | | .HasColumnType("numeric(18, 2)") |
| | | .HasColumnName("recievemoney") |
| | | .HasComment("收款金额"); |
| | | |
| | | entity.Property(e => e.RecordTypeId).HasMaxLength(50); |
| | | |
| | | entity.Property(e => e.Remark) |
| | | .HasMaxLength(4000) |
| | | .HasColumnName("remark") |
| | | .HasComment("收款备注"); |
| | | |
| | | entity.Property(e => e.SubjectId).HasMaxLength(50); |
| | | }); |
| | |
| | | entity.Property(e => e.PersonId) |
| | | .HasMaxLength(100) |
| | | .HasColumnName("person_id"); |
| | | |
| | | entity.Property(e => e.OrderId) |
| | | .HasMaxLength(100) |
| | | .HasColumnName("order_id"); |
| | | |
| | | entity.Property(e => e.RecStatus) |
| | | .IsRequired() |
| | |
| | | .HasColumnName("challenge_id"); |
| | | |
| | | entity.Property(e => e.Evidential) |
| | | .HasMaxLength(300) |
| | | .HasMaxLength(4000) |
| | | .HasColumnName("evidential"); |
| | | |
| | | entity.Property(e => e.Law) |
| | | .HasMaxLength(300) |
| | | .HasColumnName("law"); |
| | | |
| | | entity.Property(e => e.Lawcoment) |
| | | .HasMaxLength(300) |
| | | .HasColumnName("lawcoment"); |
| | | |
| | | entity.Property(e => e.Question) |
| | | .HasMaxLength(300) |
| | |
| | | .HasColumnName("complaint_id"); |
| | | |
| | | entity.Property(e => e.Evidential) |
| | | .HasMaxLength(300) |
| | | .HasMaxLength(4000) |
| | | .HasColumnName("evidential"); |
| | | |
| | | entity.Property(e => e.Law) |
| | | .HasMaxLength(300) |
| | | .HasColumnName("law"); |
| | | |
| | | entity.Property(e => e.Lawcoment) |
| | | .HasMaxLength(300) |
| | | .HasColumnName("lawcoment"); |
| | | |
| | | entity.Property(e => e.Question) |
| | | .HasMaxLength(300) |
| | |
| | | .HasMaxLength(10) |
| | | .HasColumnName("gys_postcode"); |
| | | |
| | | entity.Property(e => e.IsNotice).HasColumnName("is_notice"); |
| | | entity.Property(e => e.IsNotice) |
| | | .HasMaxLength(1) |
| | | .HasColumnName("is_notice"); |
| | | |
| | | entity.Property(e => e.IsResultnotice).HasColumnName("is_resultnotice"); |
| | | entity.Property(e => e.IsResultnotice) |
| | | .HasMaxLength(1) |
| | | .HasColumnName("is_resultnotice"); |
| | | |
| | | entity.Property(e => e.Modifier) |
| | | .HasMaxLength(50) |
| | |
| | | .HasColumnName("purchaser_name"); |
| | | |
| | | entity.Property(e => e.Questioned) |
| | | .HasMaxLength(50) |
| | | .HasMaxLength(300) |
| | | .HasColumnName("questioned"); |
| | | |
| | | entity.Property(e => e.RequestInfo) |
| | |
| | | .HasColumnName("respond_date"); |
| | | |
| | | entity.Property(e => e.Respondent) |
| | | .HasMaxLength(50) |
| | | .HasMaxLength(300) |
| | | .HasColumnName("respondent"); |
| | | |
| | | entity.Property(e => e.ResultnoticeDate) |
| | |
| | | .HasColumnName("xm_package"); |
| | | }); |
| | | |
| | | modelBuilder.Entity<TComplaintGongyingshang>(entity => |
| | | { |
| | | entity.ToTable("t_complaint_gongyingshang"); |
| | | |
| | | entity.Property(e => e.Id).HasColumnName("id"); |
| | | |
| | | entity.Property(e => e.ComplaintId) |
| | | .HasMaxLength(50) |
| | | .HasColumnName("complaint_id"); |
| | | |
| | | entity.Property(e => e.Dizhi) |
| | | .HasMaxLength(300) |
| | | .HasColumnName("dizhi"); |
| | | |
| | | entity.Property(e => e.Gongytingshang) |
| | | .HasMaxLength(300) |
| | | .HasColumnName("gongytingshang"); |
| | | |
| | | entity.Property(e => e.Lianxidianhua) |
| | | .HasMaxLength(300) |
| | | .HasColumnName("lianxidianhua"); |
| | | |
| | | entity.Property(e => e.Lianxiren) |
| | | .HasMaxLength(300) |
| | | .HasColumnName("lianxiren"); |
| | | |
| | | entity.Property(e => e.Sort).HasColumnName("sort"); |
| | | |
| | | entity.Property(e => e.Youbian) |
| | | .HasMaxLength(300) |
| | | .HasColumnName("youbian"); |
| | | }); |
| | | |
| | | modelBuilder.Entity<TComplaintShouquandaibiao>(entity => |
| | | { |
| | | entity.ToTable("t_complaint_shouquandaibiao"); |
| | | |
| | | entity.Property(e => e.Id).HasColumnName("id"); |
| | | |
| | | entity.Property(e => e.ComplaintId) |
| | | .HasMaxLength(50) |
| | | .HasColumnName("complaint_id"); |
| | | |
| | | entity.Property(e => e.Dizhi) |
| | | .HasMaxLength(300) |
| | | .HasColumnName("dizhi"); |
| | | |
| | | entity.Property(e => e.Lianxidianhua) |
| | | .HasMaxLength(300) |
| | | .HasColumnName("lianxidianhua"); |
| | | |
| | | entity.Property(e => e.Shouquandaibiao) |
| | | .HasMaxLength(300) |
| | | .HasColumnName("shouquandaibiao"); |
| | | |
| | | entity.Property(e => e.Sort).HasColumnName("sort"); |
| | | |
| | | entity.Property(e => e.Youbian) |
| | | .HasMaxLength(300) |
| | | .HasColumnName("youbian"); |
| | | }); |
| | | |
| | | OnModelCreatingPartial(modelBuilder); |
| | | } |
| | | |