08 2011 档案
NHibernate Mapping solutions
摘要:Just a little post about this argument, since as the author of (t4) Hbm2net and Db2hbm I think I can say my opinion from a critic ... 阅读全文
posted @ 2011-08-30 17:22 Gu 阅读(285) 评论(0) 推荐(0) 编辑
ConfORM 2.0 for NH3.2GA 使用
摘要:FNH只支持NH3.1,而且本质上还是HBM.xml, 而ConfORM却是根据Domain Entities智能映射到DB orm.TablePerClass(GetTypes()); ConfORMDomainMapper domainMapper = new ConfORMDomainMapper(); configure.AddDeserializedMapping(domainMapper.Mapping, null); 阅读全文
posted @ 2011-08-30 17:00 Gu 阅读(427) 评论(0) 推荐(0) 编辑
学EntityFramework 所走的弯路,最后放弃
摘要:EntityFramework 4.0 之前是不敢用,因为不稳定. 那个时候用的是Nhibernate 2.x, 那时候觉得NH对LinQ的支持太弱了. 还有定义视图太麻烦,要跟定义实体一样的流程. 因为UI通常是显示视图,不是单纯的实体. 但NH上手很容易,HQL类似SQL的语法,自动Track... 阅读全文
posted @ 2011-08-22 15:09 Gu 阅读(699) 评论(0) 推荐(1) 编辑