Colorful Life2010

NHibernate的Criteria操作
Weather:阴天,在家窝一天

通过CreateCriteria方法, 可以取得一个ICriteria接口, 这个接口用于操作表达式和排序字段. 由CriteriaImpl类实现,此类加有Internal修饰,因此不能在程序集外显示创建, CreateCriteria方法需要一个要加载对象类型的参数.

这里列出ICriteria接口中的一些常用方法:

Add:加入条件表达式(Expression对象),此方法可多次调用以组合多个条件;
AddOrder:加入排序的字段(Order对象);

Picking the Right Collection
Weather:多云 ,南风 3-4级 ,21~29 ℃

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...

C#3.0中的lambda表达式
Weather:多云 ,东北风 4-5级 ,19~25 ℃

lambda表达式,之前是Python语言中特有的一种语法,以其简便轻巧实用的特点,而备受Pythoner的欢迎,而现在,这种语法结构被引用到了.net中来。具体来看一下其定义及用法。。。

存储过程从入门到不了精通[转]
Weather:晴 ,南风 3-4级 ,20~28 ℃

①为什么要使用存储过程?
因为它比SQL语句执行快.

②存储过程是什么?
把一堆SQL语句罗在一起,还可以根据条件执行不同的SQL语句...

ASP.NET 面试题收集
Weather:晴 ,东南风 3-4级 ,最高气温28 ℃

1. 简述 private、 protected、 public、 internal 修饰符的访问权限。
答 . private :   私有成员, 在类的内部才可以访问。
     protected : 保护成员,该类内部和继承类中可以访问。
     public :    公共成员,完全公开,没有访问限制。 ...