日期:2014-05-20 浏览次数:20818 次
var movies = (from m in db.Movies where m.ReleaseDate > new DateTime(1904, 6, 1) orderby m.ID select m).Skip(90).Take(10); return View(movies.ToList());
--LinQ SQL SELECT TOP 10 A.* FROM ( SELECT * , ROW_NUMBER() OVER ( ORDER BY sd_Key ASC ) ROWS FROM dbo.sys_Dictionary ) A WHERE A.ROWS > 90
--ADO.Net手动传入的SQL SELECT A.* FROM ( SELECT TOP 100 * , ROW_NUMBER() OVER ( ORDER BY sd_Key ASC ) ROWS FROM dbo.sys_Dictionary ) A WHERE A.ROWS > 90
--ADO.Net手动传入的SQL SELECT A.* FROM ( SELECT TOP 100 * , ROW_NUMBER() OVER ( ORDER BY sd_Key ASC ) ROWS FROM dbo.sys_Dictionary ) A WHERE A.ROWS > 90