//------------------------------------------------------------------------------
//
// 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 EM_EvaluationEnter_EM_EvaluationProject_Mapping : EntityTypeConfiguration
{
public EM_EvaluationEnter_EM_EvaluationProject_Mapping()
{
this.HasKey(t => new {t.ID, t.EvaluationEnterID, t.ProjectID});
this.ToTable("EM_EvaluationEnter_EM_EvaluationProject");
this.Property(t => t.ID).HasColumnName("ID");
this.Property(t => t.EvaluationEnterID).HasColumnName("EvaluationEnterID");
this.Property(t => t.ProjectID).HasColumnName("ProjectID");
this.Property(t => t.EvaluationScore).HasColumnName("EvaluationScore");
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.Property(t => t.Remark).HasColumnName("Remark");
this.HasRequired(t => t.EM_EvaluationEnter).WithMany(t => t.EM_EvaluationEnter_EM_EvaluationProject).HasForeignKey(d => d.EvaluationEnterID);
this.HasRequired(t => t.EM_EvaluationProject).WithMany(t => t.EM_EvaluationEnter_EM_EvaluationProject).HasForeignKey(d => d.ProjectID);
}
}
}