//------------------------------------------------------------------------------
//
// 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_Menu_Mapping : EntityTypeConfiguration
{
public Sys_Menu_Mapping()
{
this.HasKey(t => t.MenuNo);
this.ToTable("Sys_Menu");
this.Property(t => t.MenuNo).HasColumnName("MenuNo").IsRequired().HasMaxLength(30);
this.Property(t => t.OrderNo).HasColumnName("OrderNo");
this.Property(t => t.MenuName).HasColumnName("MenuName").IsRequired().HasMaxLength(60);
this.Property(t => t.Icon).HasColumnName("Icon").HasMaxLength(50);
this.Property(t => t.Url).HasColumnName("Url").IsUnicode(false).HasMaxLength(500);
this.Property(t => t.ParentMenuNo).HasColumnName("ParentMenuNo").HasMaxLength(30);
this.Property(t => t.Description).HasColumnName("Description").HasMaxLength(500);
this.Property(t => t.IsTopMenu).HasColumnName("IsTopMenu");
this.Property(t => t.IsVisible).HasColumnName("IsVisible");
this.Property(t => t.IsLeaf).HasColumnName("IsLeaf");
this.Property(t => t.FunctionCode).HasColumnName("FunctionCode").HasMaxLength(50);
this.Property(t => t.RecordStatus).HasColumnName("RecordStatus");
this.HasOptional(t => t.Sys_FunctionCode).WithMany(t => t.Sys_Menu).HasForeignKey(d => d.FunctionCode);
}
}
}