コード例 #1
0
 public static Task <T> GetAsync <T, U>(this ICosmosDbRepository <T> repo, U partitionKey, DocumentId itemId, RequestOptions requestOptions = null)
 {
     requestOptions = SetPartitionKey(partitionKey, requestOptions);
     return(repo.GetAsync(itemId, requestOptions));
 }
コード例 #2
0
ファイル: RentalRepository.cs プロジェクト: fredriklr/nabobil
 public Task <IEnumerable <Rental> > GetAll()
 {
     return(_repository.GetAsync <Rental>(a => a.Id != null));
 }