Fork me on GitHub
摘要: 1.Lamdba的用法:var stuLamdba=myDB.Student .Where<Student>(u=>u.sId>4) .Where<Student>(u=>u.sId<10) .OrderBy(u=>u.sId) .Skip<Student>(3) .Take<Student>(2);其中myDB是Enityi Framwork中的上下文对象,myDB.Student就是从数据中读取的一张表,然后对这张表进行查询。注意:其实u.sId>4其实是一个匿名函数,只是简写成这种形式,如下:Func(S 阅读全文
posted @ 2012-07-14 17:39 会飞的笨石头 阅读(415) 评论(0) 推荐(0)