コード例 #1
0
        public Task <SqlQueryResponse> QueryAsync(Action <SqlQueryRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default)
        {
            var descriptor = new SqlQueryRequestDescriptor();

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequestAsync <SqlQueryRequestDescriptor, SqlQueryResponse>(descriptor));
        }
コード例 #2
0
        public SqlQueryResponse Query(Action <SqlQueryRequestDescriptor> configureRequest = null)
        {
            var descriptor = new SqlQueryRequestDescriptor();

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequest <SqlQueryRequestDescriptor, SqlQueryResponse>(descriptor));
        }