//------------------------------------------------------------------------------ // // 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 CF_DataCenterCodeTranslate_Mapping : EntityTypeConfiguration { public CF_DataCenterCodeTranslate_Mapping() { this.HasKey(t => new {t.CodeType, t.Code}); this.ToTable("CF_DataCenterCodeTranslate"); this.Property(t => t.CodeType).HasColumnName("CodeType").IsRequired().IsUnicode(false).HasMaxLength(50); this.Property(t => t.Code).HasColumnName("Code").IsRequired().IsUnicode(false).HasMaxLength(10); this.Property(t => t.DictionaryCode).HasColumnName("DictionaryCode").HasMaxLength(50); this.Property(t => t.Value).HasColumnName("Value"); this.HasOptional(t => t.Sys_Dictionary).WithMany(t => t.CF_DataCenterCodeTranslate).HasForeignKey(d => d.DictionaryCode); } } }