上一页 1 ··· 7 8 9 10 11
摘要: 初次学习LINQ to Entities,给出两种查询的示例代码。基于方法的查询:using (AdventureWorksEntities AWEntities = new AdventureWorksEntities()){ ObjectSet contacts = AWEntities.Contacts; ObjectSet orders = AWEntities.SalesOrderHeaders; var query = contacts.SelectMany( contact => orders.Where(order => (contact.ContactID == 阅读全文
posted @ 2011-04-06 09:24 StanZhai 阅读(217) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11