摘要: 有时候我们希望在sql一个表里面的column, 一部分被分化成另一个class 典型的例子是 Address 直接看代码: insert 注 : 复杂类型内不要放 FK concurrentCheck 那些比较好(我没研究,但是常遇到bug) 更新 : 默认情况下,我们不使用[Column("xx 阅读全文
posted @ 2014-11-04 11:26 兴杰 阅读(425) 评论(0) 推荐(0)
摘要: 基本上sql中要表示继承关系有3中方式. 分别是,1表继承(TPH),2表继承(TPC),3表继承(TPT) 1表 : Person id type name classroom office 1 student keat 1B null 2 teacher xinyao null Lv2-T2 好 阅读全文
posted @ 2014-11-04 02:03 兴杰 阅读(1442) 评论(0) 推荐(0)