摘要: 1. 一对多var expr = context.Products .Where(p => p.Category.CategoryName == "LINQ to SQL" && p.UnitPrice > 10m) .Select(p => new { p.Prod... 阅读全文
posted @ 2014-10-26 22:14 libingql 阅读(2411) 评论(0) 推荐(0) 编辑
摘要: 1. Takevar expr = context.Products .Take(10);var expr = (from p in context.Products select p) .Take(10);SELECT TOP (10) [... 阅读全文
posted @ 2014-10-26 21:54 libingql 阅读(8125) 评论(0) 推荐(1) 编辑