public IQueryResult <T> Query <T>(IQueryRequest queryRequest) { var requestUri = queryRequest.GetRequestUri(); var queryResult = queryRequest.IsPost ? Post <T>(queryRequest) : Get <T>(requestUri); return(queryResult); }
public Task <IQueryResult <T> > QueryAsync <T>(IQueryRequest queryRequest) { var requestUri = queryRequest.GetRequestUri(); var queryResult = queryRequest.IsPost ? PostAsync <T>(queryRequest) : GetAsync <T>(requestUri); return(queryResult); }
public IQueryResult <T> Query <T>(IQueryRequest queryRequest) { if (queryRequest.IsPrepared) { CachePreparedStatement(queryRequest); } var requestUri = queryRequest.GetRequestUri(); var queryResult = queryRequest.IsPost ? Post <T>(queryRequest) : Get <T>(requestUri); return(queryResult); }