文章分类 - NHibernate基础知识
摘要:转:http://www.cnblogs.com/ylwn817/articles/1963528.html NHibernate's methods of querying are powerful, but there's a learning curve. Longer term, Linq
阅读全文
摘要:hibernate.cfg.xml 中hibernate.hbm2ddl.auto配置节点如下: Hibernate Reference Documentation 3.3.1解释如下:Automatically validate or export schema DDL to the d...
阅读全文
摘要:Hibernate 支持两种级别的缓存, 即一级缓存以及二级缓存。一级缓存一级缓存就是 ISession 缓存, 在 ISession 的生命周期内可用, 多个 ISession 之间不能共享缓存的对象, 通过 ISessionFactory 创建的 ISession 默认支持一级缓存, 不需要特殊...
阅读全文
摘要:在hibernate中发现有2个方法很雷同。查阅后发现Hibernate中有两个极为相似的方法get()与load(),他们都可以通过指定的实体类与ID从数据库中读取数据,并返回对应的实例,但Hibernate不会搞两个完全一样的方法的,它们间的不同在于:get是直接查询数据库,如果查不到就返回nu...
阅读全文
摘要:刘东的博客:http://www.cnblogs.com/GoodHelper/
阅读全文
摘要:网址:刘东的博客NHibernate从入门到精通系列http://www.cnblogs.com/GoodHelper/tag/NHibernate/NHibernate从入门到精通系列(1)——NHibernate概括。。。
阅读全文
摘要:hibernate.cfg.xml 中hibernate.hbm2ddl.auto配置节点如下:create-dropupdate : auto execute SchemaUpdate on BuildSessionFactory create : auto execute SchemaExpor...
阅读全文

浙公网安备 33010602011771号