Esempio n. 1
0
        public async Task <DatasourceResult <List <T> > > GetListResultAsync()
        {
            var selector = new QueryExecute <T>(this);
            var result   = await selector.ExecuteAsync();

            return(result);
        }
Esempio n. 2
0
        public async Task <T> GetOneResultAsync()
        {
            From = 0;
            Size = 1;
            var selector = new QueryExecute <T>(this);
            var result   = await selector.ExecuteAsync();

            return(result?.Data?.FirstOrDefault());
        }