Example #1
0
        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));
        }
Example #2
0
        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));
        }
Example #4
0
        public Task <IEnumerable <Release> > GetAllByProjectAsync(string projectName)
        {
            string queryString = $"SELECT * FROM c WHERE c.PartitionKey = '{StandadizePartitionKey(projectName)}'";

            return(CosmosDbContainer.QueryItemsAsync <Release>(queryString));
        }
Example #5
0
        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));
        }