//------------------------------------------------------------------------------
//
// 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_ContextMenu_Mapping : EntityTypeConfiguration
{
public Sys_ContextMenu_Mapping()
{
this.HasKey(t => t.ContextMnuNo);
this.ToTable("Sys_ContextMenu");
this.Property(t => t.ContextMnuNo).HasColumnName("ContextMnuNo").IsRequired().HasMaxLength(30);
this.Property(t => t.FormClass).HasColumnName("FormClass").IsUnicode(false).HasMaxLength(50);
this.Property(t => t.Title).HasColumnName("Title").HasMaxLength(50);
this.Property(t => t.IsNeedPrivilege).HasColumnName("IsNeedPrivilege");
this.Property(t => t.IconName).HasColumnName("IconName").HasMaxLength(50);
this.Property(t => t.Scripts).HasColumnName("Scripts").IsUnicode(false).HasMaxLength(500);
this.Property(t => t.SeqNo).HasColumnName("SeqNo");
this.Property(t => t.FunctionCode).HasColumnName("FunctionCode").HasMaxLength(50);
this.Property(t => t.MenuNo).HasColumnName("MenuNo").HasMaxLength(30);
this.Property(t => t.RecordStatus).HasColumnName("RecordStatus");
this.HasOptional(t => t.Sys_FunctionCode).WithMany(t => t.Sys_ContextMenu).HasForeignKey(d => d.FunctionCode);
this.HasOptional(t => t.Sys_Menu).WithMany(t => t.Sys_ContextMenu).HasForeignKey(d => d.MenuNo);
}
}
}