摘要:
什么是Linq to sql Linq to sql(或者叫DLINQ)是LINQ(.NET语言集成查询)的一部分,全称基于关系数据的 .NET 语言集成查询,用于以对象形式管理关系数据,并提供了丰富的查询功能,它和Linq to xml、Linq to objects、Linq to dataset、Linq to entities等组成了强大的LINQ。 要学好LINQ查询语法,就不得不先理解... 阅读全文
摘要:
对象初始化器 public class Person { public string username { get; set; } public int age { get; set; } public override string ToString() { return string.Format("username:{0} age:{1}", this.username, this.ag... 阅读全文
摘要:
强类型DataContextpublic partial class NorthwindDataContext : DataContext{ public Table<Customer> Customers; public NorthwindDataContext(IDbConnection connection) : base(connection) { } public North... 阅读全文