コード例 #1
0
 public static Task <T> UpsertAsync <T, U>(this ICosmosDbRepository <T> repo, U partitionKey, T entity, RequestOptions requestOptions = null)
 {
     requestOptions = SetPartitionKey(partitionKey, requestOptions);
     return(repo.UpsertAsync(entity, requestOptions));
 }