-
- NHibernate的Criteria操作
- Weather:阴天,在家窝一天
- 2008-11-22
通过CreateCriteria方法, 可以取得一个ICriteria接口, 这个接口用于操作表达式和排序字段. 由CriteriaImpl类实现,此类加有Internal修饰,因此不能在程序集外显示创建, CreateCriteria方法需要一个要加载对象类型的参数.
这里列出ICriteria接口中的一些常用方法:
Add:加入条件表达式(Expression对象),此方法可多次调用以组合多个条件;
AddOrder:加入排序的字段(Order对象);- Views(7729) | Comments(0) | In .NET开发
-
- Picking the Right Collection
- Weather:多云 ,南风 3-4级 ,21~29 ℃
- 2007-07-06
Numerous collections exist and at first glance some seem just as good as others, but you need to carefully
consider the use of the collection to ensure optimal performance. The following list describes the
collections and what their best uses are:
❑ The ArrayList dynamically resizes as items are added and is best used to store custom object
types when the data changes frequently—for example, when you are performing frequent...- Views(5936) | Comments(0) | In .NET开发