Linq 集合操作 演示代码 两个对象一个是Person,一个Address, AddressId是外键, public class Person { public string ID { get; set; } public string Name { get; set; } public int Age { get; set; } public double Salary { get; set; } public DateTime Born { get; set; } public int…
摘要:微软在.NET 3.5中推出了LINQ,现在各种LINQ Provider满天飞,TerryLee在老外站点上收集了一份LINQ Provider列表 微软在.NET 3.5中推出了LINQ,现在各种LINQ Provider满天飞,在老外站点上一份LINQ Provider列表,近30多个: LINQ to Amazon LINQ to Active Directory LINQ to Bindable Sources (SyncLINQ) LINQ over C# project LI…
List<RemindTbl> l_lstRemind = (from x in RemindTbl where (from y in RemindTblOld where x.AttendeeAddress == y.AttendeeAddress && x.AttendeeAddress != ConstData.ScreenConst.RemindStandard select y).Any() select x).ToList(); 以上方法:比较两个集合数据,并取得R…