//------------------------------------------------------------------------------ // // This code was generated from a template. // // Manual changes to this file may cause unexpected behavior in your application. // Manual changes to this file will be overwritten if the code is regenerated. // //------------------------------------------------------------------------------ namespace EMIS.Entities { #pragma warning disable 1573 using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Data.Common; using System.Data.Entity; using System.Data.Entity.ModelConfiguration; using System.Data.Entity.Infrastructure; using System.ComponentModel.DataAnnotations.Schema; internal partial class Sys_Scheduling_Mapping : EntityTypeConfiguration { public Sys_Scheduling_Mapping() { this.HasKey(t => t.scid); this.ToTable("Sys_Scheduling"); this.Property(t => t.scid).HasColumnName("scid"); this.Property(t => t.jobid).HasColumnName("jobid").IsUnicode(false).HasMaxLength(100); this.Property(t => t.datebegin).HasColumnName("datebegin").IsRequired().IsUnicode(false).IsFixedLength().HasMaxLength(8); this.Property(t => t.dateend).HasColumnName("dateend").IsRequired().IsUnicode(false).IsFixedLength().HasMaxLength(8); this.Property(t => t.timefrom).HasColumnName("timefrom").IsRequired().IsUnicode(false).IsFixedLength().HasMaxLength(10); this.Property(t => t.timeto).HasColumnName("timeto").IsRequired().IsUnicode(false).IsFixedLength().HasMaxLength(10); this.Property(t => t.looptype).HasColumnName("looptype").IsRequired().IsUnicode(false).IsFixedLength().HasMaxLength(1); this.Property(t => t.loopnumb).HasColumnName("loopnumb"); this.Property(t => t.scmode).HasColumnName("scmode").IsRequired().IsUnicode(false).IsFixedLength().HasMaxLength(1); this.Property(t => t.scinterval).HasColumnName("scinterval"); this.Property(t => t.notes).HasColumnName("notes").IsRequired().HasMaxLength(500); this.Property(t => t.status).HasColumnName("status").IsRequired().IsUnicode(false).IsFixedLength().HasMaxLength(1); this.Property(t => t.lastrun).HasColumnName("lastrun"); this.Property(t => t.totalloopnumb).HasColumnName("totalloopnumb"); this.Property(t => t.RecordStatus).HasColumnName("RecordStatus"); this.Property(t => t.CreateUserID).HasColumnName("CreateUserID"); this.Property(t => t.CreateTime).HasColumnName("CreateTime"); this.Property(t => t.ModifyUserID).HasColumnName("ModifyUserID"); this.Property(t => t.ModifyTime).HasColumnName("ModifyTime"); this.HasOptional(t => t.Sys_ScheduleJob).WithMany(t => t.Sys_Scheduling).HasForeignKey(d => d.jobid); } } }