Esempio n. 1
0
        public async void QueryPageLikeTime()
        {
            List <TimeSpan> listTime = new List <TimeSpan>();
            List <ResponseModel <t6_house> > result = new List <ResponseModel <t6_house> >();

            for (int i = 1; i < 5; i = i + 1)
            {
                Stopwatch         sw        = new Stopwatch();
                GenericQueryModel queryBody = new GenericQueryModel()
                {
                    new GenericQueryItem()
                    {
                        Name = "column3", Value = "1".ToString(), QueryType = "like"
                    }
                };
                sw.Start();
                result.Add(await zeroXService.QueryPageLike(queryBody, i, 15));
                sw.Stop();
                listTime.Add(sw.Elapsed);
            }
        }
Esempio n. 2
0
 public async Task <ResponseModel <t6_house> > QueryPageLike([FromBody] GenericQueryModel queryBody, int index = 1, int pagesize = 15)
 {
     return(await zeroXService.QueryPageLike(queryBody, index, pagesize));
 }