| | |
| | | |
| | | public virtual DbSet<TChallengeItem> TChallengeItems { get; set; } |
| | | public virtual DbSet<TChallengeletter> TChallengeletters { get; set; } |
| | | public virtual DbSet<TChallengeRequestInfo> TChallengeRequestInfos { 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<TComplaintShouquandaibiao> TComplaintShouquandaibiaos { get; set; } |
| | | |
| | | |
| | | public virtual DbSet<Zxdsfxl> Zxdsfxls { 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"); |
| | | } |
| | | } |
| | | |
| | |
| | | .HasColumnName("money") |
| | | .HasComment("金额"); |
| | | |
| | | entity.Property(e => e.Jichumoney) |
| | | .HasColumnType("numeric(18, 2)") |
| | | .HasColumnName("jichumoney"); |
| | | |
| | | entity.Property(e => e.Xmcode) |
| | | .HasMaxLength(50) |
| | | .HasColumnName("xmcode"); |
| | | |
| | | entity.Property(e => e.Xmname) |
| | | .HasMaxLength(500) |
| | | .HasColumnName("xmname"); |
| | | |
| | | entity.Property(e => e.OrderNo) |
| | | .HasMaxLength(100) |
| | | .HasColumnName("order_no") |
| | |
| | | entity.Property(e => e.Shenyushouxin) |
| | | .HasColumnType("money") |
| | | .HasColumnName("shenyushouxin"); |
| | | entity.Property(e => e.Taocanjianshu) |
| | | .HasColumnType("int") |
| | | .HasColumnName("taocanjianshu"); |
| | | }); |
| | | |
| | | modelBuilder.Entity<CusFangwenjilu>(entity => |
| | |
| | | .HasColumnName("danjia") |
| | | .HasComment("单价"); |
| | | |
| | | entity.Property(e => e.Jifen) |
| | | .HasColumnType("money") |
| | | .HasColumnName("jifen"); |
| | | |
| | | entity.Property(e => e.Modifier) |
| | | .IsRequired() |
| | | .HasMaxLength(50) |
| | |
| | | .HasColumnType("money") |
| | | .HasColumnName("huifei") |
| | | .HasComment("会费"); |
| | | |
| | | entity.Property(e => e.Jifen) |
| | | .HasColumnType("money") |
| | | .HasColumnName("jifen"); |
| | | |
| | | entity.Property(e => e.MemberAuthority) |
| | | .HasMaxLength(500) |
| | |
| | | .HasColumnType("money") |
| | | .HasColumnName("feiyong") |
| | | .HasComment("费用"); |
| | | |
| | | entity.Property(e => e.Jifen) |
| | | .HasColumnType("money") |
| | | .HasColumnName("jifen"); |
| | | |
| | | entity.Property(e => e.Modifier) |
| | | .IsRequired() |
| | |
| | | entity.Property(e => e.Zhujiangren) |
| | | .HasMaxLength(100) |
| | | .HasColumnName("zhujiangren"); |
| | | |
| | | entity.Property(e => e.Jiage) |
| | | .HasColumnType("numeric(18, 2)") |
| | | .HasColumnName("jiage"); |
| | | |
| | | entity.Property(e => e.Jifen) |
| | | .HasColumnType("numeric(18, 2)") |
| | | .HasColumnName("Jifen"); |
| | | }); |
| | | |
| | | modelBuilder.Entity<OrderBanciOrder>(entity => |
| | |
| | | entity.Property(e => e.Jine) |
| | | .HasColumnType("money") |
| | | .HasColumnName("jine"); |
| | | |
| | | entity.Property(e => e.Jifen) |
| | | .HasColumnType("money") |
| | | .HasColumnName("jifen"); |
| | | |
| | | entity.Property(e => e.Kechengleixing) |
| | | .HasMaxLength(100) |
| | |
| | | entity.Property(e => e.ShiyongDate).HasColumnType("datetime"); |
| | | |
| | | entity.Property(e => e.ShiyongDateEnd).HasColumnType("datetime"); |
| | | |
| | | entity.Property(e => e.HetongDateEnd).HasColumnType("datetime"); |
| | | |
| | | entity.Property(e => e.ShiyongPrice).HasColumnType("numeric(18, 2)"); |
| | | |
| | |
| | | .HasColumnName("comments"); |
| | | |
| | | entity.Property(e => e.Contents) |
| | | .HasMaxLength(300) |
| | | .HasMaxLength(500) |
| | | .HasColumnName("contents"); |
| | | |
| | | entity.Property(e => e.Creater) |
| | |
| | | .HasMaxLength(300) |
| | | .HasColumnName("question"); |
| | | |
| | | entity.Property(e => e.Questionname) |
| | | .HasMaxLength(500) |
| | | .HasColumnName("questionname"); |
| | | |
| | | entity.Property(e => e.Sort).HasColumnName("sort"); |
| | | }); |
| | | |
| | |
| | | .HasColumnName("xm_package"); |
| | | }); |
| | | |
| | | modelBuilder.Entity<TChallengeRequestInfo>(entity => |
| | | { |
| | | entity.ToTable("t_challenge_requestInfo"); |
| | | |
| | | entity.Property(e => e.Id).HasColumnName("id"); |
| | | |
| | | entity.Property(e => e.ChallengeId) |
| | | .HasMaxLength(50) |
| | | .HasColumnName("challenge_id"); |
| | | |
| | | entity.Property(e => e.RequestInfo) |
| | | .HasMaxLength(50) |
| | | .HasColumnName("requestInfo"); |
| | | |
| | | entity.Property(e => e.RequestInfoname) |
| | | .HasMaxLength(500) |
| | | .HasColumnName("requestInfoname"); |
| | | }); |
| | | |
| | | modelBuilder.Entity<TComplaintItem>(entity => |
| | | { |
| | | entity.ToTable("t_complaint_items"); |
| | |
| | | entity.Property(e => e.Question) |
| | | .HasMaxLength(300) |
| | | .HasColumnName("question"); |
| | | |
| | | entity.Property(e => e.Questionname) |
| | | .HasMaxLength(500) |
| | | .HasColumnName("questionname"); |
| | | |
| | | entity.Property(e => e.Sort).HasColumnName("sort"); |
| | | }); |
| | |
| | | .HasColumnName("youbian"); |
| | | }); |
| | | |
| | | |
| | | modelBuilder.Entity<Zxdsfxl>(entity => |
| | | { |
| | | entity.ToTable("zxdsfxls"); |
| | | |
| | | entity.Property(e => e.Id).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.Huiyuanid) |
| | | .HasMaxLength(50) |
| | | .HasColumnName("huiyuanid"); |
| | | |
| | | entity.Property(e => e.Huiyuanname) |
| | | .HasMaxLength(100) |
| | | .HasColumnName("huiyuanname"); |
| | | |
| | | entity.Property(e => e.Leixing) |
| | | .HasMaxLength(1) |
| | | .HasColumnName("leixing"); |
| | | |
| | | 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.RecStatus) |
| | | .IsRequired() |
| | | .HasMaxLength(1) |
| | | .HasColumnName("rec_status") |
| | | .HasDefaultValueSql("('A')"); |
| | | |
| | | entity.Property(e => e.Token) |
| | | .HasMaxLength(500) |
| | | .HasColumnName("token"); |
| | | |
| | | entity.Property(e => e.Visittime) |
| | | .HasColumnType("datetime") |
| | | .HasColumnName("visittime"); |
| | | }); |
| | | |
| | | OnModelCreatingPartial(modelBuilder); |
| | | } |
| | | |