摘要: 上篇文章简单介绍NHibernate之简单增删改查,本文将会简单介绍有关执行NHibernate的SQL、HQL及存储过程;一:执行SQL语句实例,运用CreateSQLQuery方法 public IList GetListBySql() { string strSql = "select * from T_School where studentNum>250"; ISQLQuery sqlQuery = isession.CreateSQLQuery(strSql).AddEntity(typeof(SchoolMo... 阅读全文
posted @ 2014-03-05 10:23 踏浪帅 阅读(1403) 评论(0) 推荐(0) 编辑