Show / Hide Table of Contents

Class CosmosRepositoryOptions<T>

Configuration options for a repository.

Inheritance
object
CosmosRepositoryOptions<T>
Inherited Members
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 CosmosRepositoryOptions<T>
Type Parameters
Name Description
T

Domain model type managed by the repository

Properties

| Edit this page View Source

ConnectionString

Connection string for the Cosmos DB account.

Declaration
public string? ConnectionString { get; set; }
Property Value
Type Description
string
| Edit this page View Source

ContainerName

Name of the container in the Cosmos DB database.

Declaration
public string ContainerName { get; set; }
Property Value
Type Description
string
| Edit this page View Source

DatabaseName

Cosmos DB database name.

Declaration
public string DatabaseName { get; set; }
Property Value
Type Description
string
| Edit this page View Source

DatabaseThroughput

Throughput for the database. This is only used if the database is created.

Declaration
public int DatabaseThroughput { get; set; }
Property Value
Type Description
int
| Edit this page View Source

PartitionKey

Partition key configuration for the Cosmos DB container.

Declaration
public string PartitionKey { get; set; }
Property Value
Type Description
string
| Edit this page View Source

UseDefaultAzureCredential

Declaration
public bool UseDefaultAzureCredential { get; set; }
Property Value
Type Description
bool
| Edit this page View Source

UseHierarchicalPartitionKey

Use hierarchical partition key. This option is disabled by default.

Declaration
public bool UseHierarchicalPartitionKey { get; set; }
Property Value
Type Description
bool
| Edit this page View Source

WithCreateStructures

Configure whether to create Cosmos DB structures if they don't already exists. This option is disabled by default.

Declaration
public bool WithCreateStructures { get; set; }
Property Value
Type Description
bool
  • Edit this page
  • View Source
In this article
Back to top Copyright © www.benday.com | info@benday.com