MVC5 controller中移动记录集到下一条
using (Models.DaoLaoSanEntities DataBase = new Models.DaoLaoSanEntities())
{
var Data = DataBase.PolicyService.Select(c => new { c.ID, c.ZCBiaoTi, c.FaWenDate, c.PolicyReleaseType, c.TopOrNot,c.ShuZiBianHao}).Where(P => P.ShuZiBianHao == "0101").FirstOrDefault();
ViewBag.ToptzggTitle01 = Data.ZCBiaoTi;
ViewBag.ToptzggDate01 = Data.FaWenDate;
ViewBag.ToptzggTitle02 = Data.ZCBiaoTi.Skip(1);
ViewBag.ToptzggDate02 = Data.FaWenDate;
return View();
}
请求出了记录集,怎样移动到一下条记录?
回答
自己解决了,哈哈__