public async void QueryPageTime() { GenericQueryModel query = new GenericQueryModel(); query.TryAddQuery("column3", "1", "like"); List <TimeSpan> listTime = new List <TimeSpan>(); List <ResponseModel <T4_House_Part> > result = new List <ResponseModel <T4_House_Part> >(); for (int i = 100; i < 400; i = i + 100) { Stopwatch sw = new Stopwatch(); sw.Start(); result.Add(await zeroJsonService.QueryPage(query, i, 150)); sw.Stop(); listTime.Add(sw.Elapsed); } }
public Task <ResponseModel <T4_House_Part> > QueryPage([FromBody] GenericQueryModel queryBody, int index = 1, int pagesize = 15) { return(zeroJsonService.QueryPage(queryBody, index, pagesize)); }