//------------------------------------------------------------------------------ // // 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 EMISOnline.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_FunctionCode_Mapping : EntityTypeConfiguration { public Sys_FunctionCode_Mapping() { this.HasKey(t => t.FunctionCode); this.ToTable("Sys_FunctionCode"); this.Property(t => t.FunctionCode).HasColumnName("FunctionCode").IsRequired().HasMaxLength(50); this.Property(t => t.FunctionName).HasColumnName("FunctionName").HasMaxLength(50); this.Property(t => t.ParentFunctionCode).HasColumnName("ParentFunctionCode").HasMaxLength(50); this.Property(t => t.OrderNo).HasColumnName("OrderNo"); this.HasMany(t => t.Sys_Role).WithMany(t => t.Sys_FunctionCode) .Map(m => { m.ToTable("Sys_Role_Sys_FunctionCode"); m.MapLeftKey("FunctionCode"); m.MapRightKey("RoleID"); }); } } }