标签:
this.HasRequired(t => t.TRDConInfo)
.WithOptional(t => t.TRDFoundationProjCheck);
this.HasRequired(t => t.ComponentBelong)
.WithMany(t => t.TRDConInfos)
.HasForeignKey(d => d.ComponentBelongID);
this.HasMany(t => t.Contract)
.WithMany(t => t.DesignChangeAudit)
.Map(m => {
m.ToTable("T_Change_DesignAudit_Contract");
m.MapLeftKey("DesignChangeAuditID");
m.MapRightKey("ContractID");
});
标签:
原文地址:http://www.cnblogs.com/zhangliming/p/4388198.html