//------------------------------------------------------------------------------
//
// 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.HRServices
{
#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 Comm_OrgInfo_Mapping : EntityTypeConfiguration
{
public Comm_OrgInfo_Mapping()
{
this.HasKey(t => t.dpid);
this.ToTable("Comm_OrgInfo");
this.Property(t => t.dpid).HasColumnName("dpid").IsRequired().HasMaxLength(55);
this.Property(t => t.parentdpid).HasColumnName("parentdpid").HasMaxLength(55);
this.Property(t => t.dpcode).HasColumnName("dpcode").HasMaxLength(155);
this.Property(t => t.dplv).HasColumnName("dplv");
this.Property(t => t.dpname).HasColumnName("dpname").HasMaxLength(55);
this.Property(t => t.dpfullname).HasColumnName("dpfullname").HasMaxLength(155);
this.Property(t => t.dpdesc).HasColumnName("dpdesc").HasMaxLength(55);
this.Property(t => t.isshow).HasColumnName("isshow");
this.Property(t => t.status).HasColumnName("status").IsUnicode(false).IsFixedLength().HasMaxLength(1);
this.Property(t => t.orderNo).HasColumnName("orderNo").HasMaxLength(155);
this.Property(t => t.isTmpDP).HasColumnName("isTmpDP").IsRequired().IsUnicode(false).IsFixedLength().HasMaxLength(1);
this.Property(t => t.createdt).HasColumnName("createdt");
this.Property(t => t.updatedt).HasColumnName("updatedt");
this.Property(t => t.AllowDist).HasColumnName("AllowDist");
this.Property(t => t.OrderNum).HasColumnName("OrderNum").IsUnicode(false).HasMaxLength(50);
}
}
}