随笔分类 -  linq

linq 使用first筛选出第一条数据
摘要:View Code staticvoidMain(string[]args){List<Person>personL=newList<Person>();personL.Add(newPerson("wtq","男","13616009873",23));personL.Add(newPerson("wta","女","13616009871",24));personL.Add(newPerson("wtb","男&quo 阅读全文
posted @ 2011-07-30 16:54 wtq 阅读(7898) 评论(0) 推荐(0)
LInq 使用where过滤,匿名类型来查找想要的数据。
摘要:View Code staticvoidMain(string[]args){List<Person>personL=newList<Person>();personL.Add(newPerson("wtq","男","13616009873",23));personL.Add(newPerson("wta","女","13616009871",24));personL.Add(newPerson("wtb","男&quo 阅读全文
posted @ 2011-07-30 16:15 wtq 阅读(876) 评论(0) 推荐(1)