1. 基于共享主键的一对一:

    this.HasRequired(t => t.TRDConInfo)
    .WithOptional(t => t.TRDFoundationProjCheck);

  2. 一对多

    this.HasRequired(t => t.ComponentBelong)
    .WithMany(t => t.TRDConInfos)
    .HasForeignKey(d => d.ComponentBelongID);

  3. 多对多

    this.HasMany(t => t.Contract)
    .WithMany(t => t.DesignChangeAudit)
    .Map(m => {
    m.ToTable("T_Change_DesignAudit_Contract");
    m.MapLeftKey("DesignChangeAuditID");
    m.MapRightKey("ContractID");
    });

最新文章

  1. CSS margin详解
  2. 洛谷 P1387 最大正方形 Label:奇怪的解法
  3. 验证备份前设置CONFIGURE CONTROLFILE AUTOBACKUP ON/OFF; 的区别
  4. LeetCode:Word Break II(DP)
  5. [Cocos2d-x for WP8学习笔记] HelloWorld
  6. pay lip service to
  7. TCP/IP详细解释--TCP/IP可靠的原则 推拉窗 拥塞窗口
  8. POJ 2250 Compromise (UVA 531)
  9. js验证如何限制文本框只能输入数字
  10. 11-13 js操作css样式
  11. SQLITE在IIS中使用问题
  12. 使用netty编写IM通信界面
  13. 揭秘memset与sizeof的结合使用方法
  14. Bypassing PatchGuard on Windows x64
  15. 杂项:GitHub
  16. Android工程导入Unity3D(避坑版)
  17. 移动平台的WebApp之Meta标签
  18. 使用docker国内镜像解决方案
  19. 《java 语言程序设计》第2章编程练习
  20. Android测试入门篇

热门文章

  1. hexo-github 博客搭建
  2. C# 使用隐式或显示实现接口的区别
  3. postgresql 开启远程访问
  4. TIME_WAIT引起Cannot assign requested address报错
  5. c 指针兼容性问题
  6. Vbox安装oracle-linux报错:VT-x features locked or unavailable in M
  7. Ubuntu首次开启root用户
  8. mac安装cocoapods
  9. android 开发,多个线程共用一个handler
  10. Hadoop集群中pig工具的安装过程记录