摘要:
nhibernate在使用过程中遇到问题,不断解决后的一些零碎知识:一、Express: Express声明一个变量后,此变量可以保存一个lamda表达式,Express exp=(o=>o.fieldname),这样可以动态组合要查询的字段。上代码: Expression<Func<Gx.Model.Author, bool>> where1, where2; if (CityId != 0) { // strCity = " and other_City=" + CityId; wher... 阅读全文