Show / Hide Table of Contents

Class CosmosDbParentedItemRepository<T>

Inheritance
object
CosmosRepository<T>
CosmosTenantItemRepository<T>
CosmosDbParentedItemRepository<T>
Implements
IParentedItemRepository<T>
ITenantItemRepository<T>
IRepository<T>
IAsyncTenantRepository<T, string>
IAsyncRepository<T, string>
Inherited Members
CosmosTenantItemRepository<T>.GetAllAsync(string)
CosmosTenantItemRepository<T>.GetByIdAsync(string, string)
CosmosTenantItemRepository<T>.DeleteAsync(T)
CosmosTenantItemRepository<T>.GetPagedAsync(string, int, string)
CosmosTenantItemRepository<T>.BulkMaxConcurrency
CosmosTenantItemRepository<T>.BulkMaxRetries
CosmosTenantItemRepository<T>.DeleteAllByTenantIdAsync(string, CancellationToken)
CosmosTenantItemRepository<T>.DeleteAllByTenantIdAsync(string, int, int, CancellationToken)
CosmosTenantItemRepository<T>.DeleteWithRetryAsync(T, int, CancellationToken)
CosmosTenantItemRepository<T>.SaveAllAsync(IEnumerable<T>, CancellationToken)
CosmosTenantItemRepository<T>.SaveAllAsync(IEnumerable<T>, int, int, CancellationToken)
CosmosTenantItemRepository<T>.SaveWithRetryAsync(T, int, CancellationToken)
CosmosRepository<T>.EntityType
CosmosRepository<T>.Logger
CosmosRepository<T>._Options
CosmosRepository<T>._sink
CosmosRepository<T>.GetContainerAsync()
CosmosRepository<T>.DeleteAsync(string)
CosmosRepository<T>.GetAllAsync()
CosmosRepository<T>.GetResultsAsync<TResult>(IQueryable<TResult>, string, PartitionKey)
CosmosRepository<T>.GetResultsAsync<TResult>(QueryDefinition, string, PartitionKey)
CosmosRepository<T>.GetResultsAsync(QueryDefinition, string, PartitionKey)
CosmosRepository<T>.GetResultsAsync<TResult>(FeedIterator<TResult>, string, string, IReadOnlyDictionary<string, object>, PartitionKey)
CosmosRepository<T>.GetQueryDescription(string)
CosmosRepository<T>.GetQueryDescription(string, string)
CosmosRepository<T>.IsCrossPartitionQuery(CosmosDiagnostics)
CosmosRepository<T>.LogPointOperationDiagnostics(string, double, CosmosDiagnostics, TimeSpan)
CosmosRepository<T>.LogFeedResponseDiagnostics(string, double, CosmosDiagnostics, TimeSpan, int, string, IReadOnlyDictionary<string, object>, PartitionKey)
CosmosRepository<T>.LogQueryTotalDiagnostics(string, double, TimeSpan, int, string, IReadOnlyDictionary<string, object>, PartitionKey, bool)
CosmosRepository<T>.OnQueryDiagnostics(CosmosQueryDiagnostics)
CosmosRepository<T>.ExecuteScalarAsync<TResult>(IQueryable<T>, Func<IQueryable<T>, Task<Response<TResult>>>, string, PartitionKey, Func<TResult, int>)
CosmosRepository<T>.GetByIdAsync(string)
CosmosRepository<T>.Initialize()
CosmosRepository<T>.SaveAsync(T)
CosmosRepository<T>.BatchSize
CosmosRepository<T>.SaveAsync(IList<T>)
CosmosRepository<T>.SaveBatchAsync(int, int, T[])
CosmosRepository<T>.AfterSaveBatch(TransactionalBatchResponse, T[], int, int)
CosmosRepository<T>.BeforeSaveBatch(TransactionalBatch, T[], int, int)
CosmosRepository<T>.GetPartitionKey(T)
CosmosRepository<T>.GetPartitionKey(string, string)
CosmosRepository<T>.GetQueryContextAsync(string)
CosmosRepository<T>.GetQueryContextAsync(string, string)
CosmosRepository<T>.GetQueryContextAsync()
CosmosRepository<T>.GetPagedAsync(int, string)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Benday.CosmosDb.Repositories
Assembly: Benday.CosmosDb.dll
Syntax
public class CosmosDbParentedItemRepository<T> : CosmosTenantItemRepository<T>, IParentedItemRepository<T>, ITenantItemRepository<T>, IRepository<T>, IAsyncTenantRepository<T, string>, IAsyncRepository<T, string> where T : class, IParentedItem, new()
Type Parameters
Name Description
T

Constructors

| Edit this page View Source

CosmosDbParentedItemRepository(IOptions<CosmosRepositoryOptions<T>>, CosmosClient, ILogger<CosmosTenantItemRepository<T>>, ICosmosQueryLogSink?)

Declaration
public CosmosDbParentedItemRepository(IOptions<CosmosRepositoryOptions<T>> options, CosmosClient client, ILogger<CosmosTenantItemRepository<T>> logger, ICosmosQueryLogSink? sink = null)
Parameters
Type Name Description
IOptions<CosmosRepositoryOptions<T>> options
CosmosClient client
ILogger<CosmosTenantItemRepository<T>> logger
ICosmosQueryLogSink sink

Methods

| Edit this page View Source

GetAllByParentIdAsync(string, string, string?)

Declaration
public Task<List<T>> GetAllByParentIdAsync(string tenantId, string parentId, string? parentEntityType = null)
Parameters
Type Name Description
string tenantId
string parentId
string parentEntityType
Returns
Type Description
Task<List<T>>

Implements

IParentedItemRepository<T>
ITenantItemRepository<T>
IRepository<T>
Benday.Common.Interfaces.IAsyncTenantRepository<T, TKey>
Benday.Common.Interfaces.IAsyncRepository<T, TKey>
  • Edit this page
  • View Source
In this article
Back to top Copyright © www.benday.com | info@benday.com