public Task <IEnumerable <Revision> > GetAllByProjectAsync(string projectName, int itemsPerPage, string continuationToken) { string queryString = $"SELECT * FROM c WHERE c.PartitionKey = '{StandadizePartitionKey(projectName)}' ORDER BY c.CreatedTime DESC"; return(CosmosDbContainer.QueryItemsAsync <Revision>(queryString, itemsPerPage, continuationToken)); }
public Task <IEnumerable <Project> > GetAllByDomainAsync(string domainString) { string queryString = $"SELECT * FROM c WHERE c.PartitionKey = '{StandadizePartitionKey(domainString)}'"; return(CosmosDbContainer.QueryItemsAsync <Project>(queryString)); }
public Task <IEnumerable <ProcedureExecution> > GetAllByRNPAsync(string projectName, string revisionNumber, string procedureName) { string queryString = $"SELECT * FROM c WHERE c.PartitionKey = '{StandadizePartitionKey(projectName, revisionNumber)}' AND c.ProcedureShortName = '{procedureName}'"; return(CosmosDbContainer.QueryItemsAsync <ProcedureExecution>(queryString)); }
public Task <IEnumerable <Release> > GetAllByProjectAsync(string projectName) { string queryString = $"SELECT * FROM c WHERE c.PartitionKey = '{StandadizePartitionKey(projectName)}'"; return(CosmosDbContainer.QueryItemsAsync <Release>(queryString)); }
public Task <IEnumerable <Procedure> > GetAllByProjectAsync(string projectName) { string queryString = $"SELECT * FROM c WHERE c.PartitionKey = '{StandadizePartitionKey(projectName)}' ORDER BY c.CreatedTime ASC"; return(CosmosDbContainer.QueryItemsAsync <Procedure>(queryString)); }