
LINQ
diandian82
这个作者很懒,什么都没留下…
展开
-
A simple example to create LINQ to SQL manually.
1. Add the following references to the project. using System.Data.Linq.Mapping;using System.Data.Linq; 2. Create entity class.[Table(Name = "Customers")] public class Customer {原创 2009-02-13 16:54:00 · 555 阅读 · 0 评论 -
Linq to XML customize distinct function
Definition comparer class, class ItemComparer : IEqualityComparer { public bool Equals(XElement x, XElement y) { return x.Attribute("Name").Value == x.Attrib原创 2010-05-28 13:01:00 · 630 阅读 · 0 评论