//------------------------------------------------------------------------------
//
// 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_UniversityProfile_Mapping : EntityTypeConfiguration
{
public CF_UniversityProfile_Mapping()
{
this.HasKey(t => t.UniversityID);
this.ToTable("CF_UniversityProfile");
this.Property(t => t.UniversityID).HasColumnName("UniversityID");
this.Property(t => t.ProvinceID).HasColumnName("ProvinceID");
this.Property(t => t.CityID).HasColumnName("CityID");
this.Property(t => t.DistrictID).HasColumnName("DistrictID");
this.Property(t => t.PropertyID).HasColumnName("PropertyID");
this.Property(t => t.SchoolTypeID).HasColumnName("SchoolTypeID");
this.Property(t => t.ManagerID).HasColumnName("ManagerID");
this.Property(t => t.FounderTypeID).HasColumnName("FounderTypeID");
this.Property(t => t.SchoolLevelID).HasColumnName("SchoolLevelID");
this.Property(t => t.HeadMasterName).HasColumnName("HeadMasterName").HasMaxLength(20);
this.Property(t => t.PartyManageID).HasColumnName("PartyManageID");
this.Property(t => t.LegalPersonName).HasColumnName("LegalPersonName").HasMaxLength(50);
this.Property(t => t.BuildDate).HasColumnName("BuildDate");
this.Property(t => t.AnniversaryDate).HasColumnName("AnniversaryDate");
this.Property(t => t.SchoolBasis).HasColumnName("SchoolBasis").HasMaxLength(100);
this.Property(t => t.SchoolMotto).HasColumnName("SchoolMotto").HasMaxLength(100);
this.Property(t => t.SubjectCount).HasColumnName("SubjectCount");
this.Property(t => t.Is211University).HasColumnName("Is211University");
this.Property(t => t.IsKeyUniversity).HasColumnName("IsKeyUniversity");
this.Property(t => t.IsAdultCollege).HasColumnName("IsAdultCollege");
this.Property(t => t.IsPostCollege).HasColumnName("IsPostCollege");
this.Property(t => t.IsNetCollege).HasColumnName("IsNetCollege");
this.Property(t => t.Telephone).HasColumnName("Telephone").IsUnicode(false).HasMaxLength(20);
this.Property(t => t.ZIPCode).HasColumnName("ZIPCode").IsUnicode(false).HasMaxLength(10);
this.Property(t => t.Email).HasColumnName("Email").IsUnicode(false).HasMaxLength(50);
this.Property(t => t.FAX).HasColumnName("FAX").IsUnicode(false).HasMaxLength(20);
this.Property(t => t.PublicNum).HasColumnName("PublicNum").HasMaxLength(50);
this.Property(t => t.HomePage).HasColumnName("HomePage").IsUnicode(false).HasMaxLength(500);
this.Property(t => t.Address).HasColumnName("Address").HasMaxLength(500);
this.Property(t => t.EnglishAddress).HasColumnName("EnglishAddress").HasMaxLength(500);
this.Property(t => t.HistoryEvolution).HasColumnName("HistoryEvolution");
this.Property(t => t.RecordStatus).HasColumnName("RecordStatus");
this.Property(t => t.CreateUserID).HasColumnName("CreateUserID");
this.Property(t => t.CreateTime).HasColumnName("CreateTime");
this.Property(t => t.ModifyUserID).HasColumnName("ModifyUserID");
this.Property(t => t.ModifyTime).HasColumnName("ModifyTime");
this.HasRequired(t => t.CF_University).WithOptional(t => t.CF_UniversityProfile);
}
}
}