Page<User> page = new Page<>(); User user = new User(); user.setAge(20); user.setId(1); System.out.println(JSON.toJSONString(user)); page.add(user); page.setPageNum(2); page.setPageSize(20); …
首先从数据库获取数据 using System; using System.Collections.Generic; using System.Linq; using System.Web; using mvctest.Models; namespace mvctest.customclass { public class getdataresource { public List<student> gd() { Model1 db=new Model1(); var q = from p i…