//------------------------------------------------------------------------------
//
// 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 SUP_ProjectRecord_Mapping : EntityTypeConfiguration
{
public SUP_ProjectRecord_Mapping()
{
this.HasKey(t => t.ProjectRecordID);
this.ToTable("SUP_ProjectRecord");
this.Property(t => t.ProjectRecordID).HasColumnName("ProjectRecordID");
this.Property(t => t.SchoolyearID).HasColumnName("SchoolyearID");
this.Property(t => t.ProjectDate).HasColumnName("ProjectDate");
this.Property(t => t.Location).HasColumnName("Location").HasMaxLength(50);
this.Property(t => t.SupervisionCollegeID).HasColumnName("SupervisionCollegeID");
this.Property(t => t.SupervisionTypeID).HasColumnName("SupervisionTypeID");
this.Property(t => t.UserID).HasColumnName("UserID");
this.Property(t => t.CoursematerialID).HasColumnName("CoursematerialID");
this.Property(t => t.OtherTarget).HasColumnName("OtherTarget").HasMaxLength(100);
this.Property(t => t.Weekday).HasColumnName("Weekday");
this.Property(t => t.CoursesTimeID).HasColumnName("CoursesTimeID");
this.Property(t => t.TotalScore).HasColumnName("TotalScore");
this.Property(t => t.Content).HasColumnName("Content");
this.Property(t => t.Advise).HasColumnName("Advise");
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.HasOptional(t => t.CF_Schoolyear).WithMany(t => t.SUP_ProjectRecord).HasForeignKey(d => d.SchoolyearID);
this.HasOptional(t => t.UserID_Nav).WithMany(t => t.SUP_ProjectRecord_UserID).HasForeignKey(d => d.UserID);
this.HasOptional(t => t.EM_Coursematerial).WithMany(t => t.SUP_ProjectRecord).HasForeignKey(d => d.CoursematerialID);
this.HasOptional(t => t.SUP_SupervisionCollege).WithMany(t => t.SUP_ProjectRecord).HasForeignKey(d => d.SupervisionCollegeID);
}
}
}