随笔分类 -  EntityFramework

摘要:var temp = db.Products .Where(p => p.ProductID > 0) .OrderBy(p => p.ProductID) .Skip(3 * 2) .Take(3) .Select(p => new { p.ProductID, ... 阅读全文
posted @ 2014-04-22 08:56 秋意了了 阅读(291) 评论(0) 推荐(0) 编辑
摘要:http://visualstudiogallery.msdn.microsoft.com/72a60b14-1581-4b9b-89f2-846072eff19d 阅读全文
posted @ 2014-04-09 20:51 秋意了了 阅读(268) 评论(1) 推荐(1) 编辑
摘要:The Entity Framework Code First API includes methods that enable you to pass SQL commands directly to the database. You have the following options:Use the DbSet.SqlQuery method for queries that return entity types. The returned objects must be of the type expected by the DbSet object, and they are a 阅读全文
posted @ 2014-04-09 19:20 秋意了了 阅读(905) 评论(0) 推荐(0) 编辑