using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata; namespace MySystem.JobModels { public partial class WebCMSEntities : DbContext { public WebCMSEntities() { } public WebCMSEntities(DbContextOptions options) : base(options) { } public virtual DbSet RightDic { get; set; } public virtual DbSet SysLog { get; set; } public virtual DbSet TaskFinish { get; set; } public virtual DbSet TaskSpCheckData { get; set; } public virtual DbSet TaskSpFieldRelation { get; set; } public virtual DbSet TaskSpGetData { get; set; } public virtual DbSet TaskStepRecord { get; set; } public virtual DbSet TimedTasks { get; set; } protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { if (!optionsBuilder.IsConfigured) { optionsBuilder.UseMySql(Library.ConfigurationManager.AppSettings["JobSqlConnStr"].ToString(), x => x.ServerVersion("5.7.17-mysql")); } } protected override void OnModelCreating(ModelBuilder modelBuilder) { 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.CreateDate).HasColumnType("datetime"); entity.Property(e => e.CreateMan) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.GetData) .HasColumnType("mediumtext") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.QueryCount).HasColumnType("int(11)"); 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.TargetData) .HasColumnType("mediumtext") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.TaskId).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.Property(e => e.Id).HasColumnType("int(11)"); entity.Property(e => e.CheckKey) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.CheckTable).HasColumnType("int(11)"); 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.EndDate).HasColumnType("datetime"); entity.Property(e => e.MaxId).HasColumnType("int(11)"); entity.Property(e => e.QueryCount).HasColumnType("int(11)"); entity.Property(e => e.ReqType) .HasColumnType("varchar(10)") .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.StartDate).HasColumnType("datetime"); entity.Property(e => e.Status).HasColumnType("int(11)"); entity.Property(e => e.TargetTableName) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.TargetTableType).HasColumnType("int(11)"); entity.Property(e => e.TaskId).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.Property(e => e.Id).HasColumnType("int(11)"); 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.QueryCount).HasColumnType("int(11)"); 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.SourceFieldName) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.SourceFieldTitle) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Status).HasColumnType("int(11)"); entity.Property(e => e.TargetFieldName) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.TargetFieldType) .HasColumnType("varchar(20)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.TaskId).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.Property(e => e.Id).HasColumnType("int(11)"); entity.Property(e => e.CheckKey) .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.FtpPassword) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.FtpUserName) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.IsCheck) .HasColumnType("bit(1)") .HasDefaultValueSql("b'0'"); entity.Property(e => e.QueryCount).HasColumnType("int(11)"); entity.Property(e => e.ReqParam) .HasColumnType("varchar(200)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.ReqType) .HasColumnType("varchar(10)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.ReqUrl) .HasColumnType("varchar(200)") .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.TargetTableName) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.TargetTableType).HasColumnType("int(11)"); entity.Property(e => e.TaskId).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.Property(e => e.Id).HasColumnType("int(11)"); 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.QueryCount).HasColumnType("int(11)"); 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.Step).HasColumnType("int(11)"); entity.Property(e => e.StepRemark) .HasColumnType("varchar(200)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.TaskId).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.Property(e => e.Id).HasColumnType("int(11)"); entity.Property(e => e.BrandId).HasColumnType("int(11)"); 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.DoTime).HasColumnType("int(11)"); entity.Property(e => e.EndDate).HasColumnType("datetime"); entity.Property(e => e.Name) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Note) .HasColumnType("varchar(200)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.OrderJson) .HasColumnType("varchar(500)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.QueryCount).HasColumnType("int(11)"); 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.ServerName) .HasColumnType("varchar(50)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.Sort).HasColumnType("int(11)"); entity.Property(e => e.StartDate).HasColumnType("datetime"); entity.Property(e => e.Status).HasColumnType("int(11)"); entity.Property(e => e.TargetIp) .HasColumnType("varchar(15)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); entity.Property(e => e.TargetPort).HasColumnType("int(11)"); entity.Property(e => e.TimeStep) .HasColumnType("varchar(500)") .HasCharSet("utf8") .HasCollation("utf8_general_ci"); 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); } }