Пример #1
0
        public T RunScalerQuery <T>(SQLQueryScaler <T> query)
        {
            var task = RunScalerQueryAsync <T>(query);

            task.Wait();
            return(task.Result);
        }
Пример #2
0
        public async Task <T> RunScalerQueryAsync <T>(string sql)
        {
            var query = new SQLQueryScaler <T>(sql);

            await RunQueryAsync(query);

            return(query.ReturnValue);
        }
Пример #3
0
        public async Task <T> RunScalerQueryAsync <T>(SQLQueryScaler <T> query)
        {
            await RunQueryAsync(query);

            return(query.ReturnValue);
        }