博客园  :: 首页  :: 联系 :: 管理

文章分类 -  LINQ

摘要:LINQ Distinct 自定义 阅读全文

posted @ 2008-07-28 12:57 sunrack 阅读(3148) 评论(0) 推荐(1) 编辑

摘要:否则提交成功,但是没有更新数据库 阅读全文

posted @ 2008-06-11 17:02 sunrack 阅读(1031) 评论(4) 推荐(0) 编辑

摘要:将List转换为BindingList,然后设置DataGridView的DataSource为BindingList!! 代码: DataGridView.DataSource = new BindingList(List); 将绑定BindingList的DataSource转化为List,同理 代码: List modelList=new List((BindingList)this.Da... 阅读全文

posted @ 2008-04-08 12:33 sunrack 阅读(3569) 评论(6) 推荐(1) 编辑

摘要:一、添加连接字符串 在Setting设计器中添加 ConnectionString 类型的配置 二、读取 System.Configuration.ConnectionStringSettingsCollection config = System.Configuration.ConfigurationManager.ConnectionStrings; ... 阅读全文

posted @ 2008-03-05 15:38 sunrack 阅读(2197) 评论(2) 推荐(0) 编辑

摘要:http://www.tolib.com/66555.html Introduction In the new version (.NET framework 3.5), Microsoft have provided a way to define the queries in the programming language (C# 3.0, VB.NET 9.0) using LINQ wh... 阅读全文

posted @ 2008-03-05 14:09 sunrack 阅读(2352) 评论(1) 推荐(0) 编辑

摘要:Lambda表达式可以在使用代理和匿名代理的地方 1、命名函数 public class Common { public delegate bool IntFilter(int i); public static int[] FilterArrayOfInts(int[] ints, IntFilter filter) { ArrayList aList = new ArrayList(); ... 阅读全文

posted @ 2008-02-18 09:56 sunrack 阅读(627) 评论(0) 推荐(0) 编辑

摘要:LINQ学习笔记-Lambda表达式 阅读全文

posted @ 2008-01-17 16:30 sunrack 阅读(1212) 评论(0) 推荐(0) 编辑

摘要:C# 3.0 LINQ 的演变及其对 C# 设计的影响 Anson Horton ... 阅读全文

posted @ 2007-07-31 13:12 sunrack 阅读(675) 评论(0) 推荐(0) 编辑