Skip to content
Docs Try Aspire

EntityFrameworkCoreCosmosSettings Properties

Class Properties 7 members
The settings relevant to accessing Azure Cosmos DB database using EntityFrameworkCore.
AccountEndpoint Section titled AccountEndpoint nullable Uri?
A Uri referencing the Azure Cosmos DB Endpoint. This is likely to be similar to "https://{account_name}.documents.azure.com".
public Uri? AccountEndpoint { get; set; }
Must not contain shared access signature. Used along with EntityFrameworkCoreCosmosSettings.Credential to establish the connection.
ConnectionString Section titled ConnectionString nullable string?
The connection string of the Azure Cosmos DB server database to connect to.
public string? ConnectionString { get; set; }
Credential Section titled Credential nullable TokenCredential?
Gets or sets the credential used to authenticate to the Azure Cosmos DB endpoint.
public TokenCredential? Credential { get; set; }
DatabaseName Section titled DatabaseName nullable string?
The name of the database to connect to.
public string? DatabaseName { get; set; }
Gets or sets a boolean value that indicates whether the OpenTelemetry tracing is disabled or not.
public bool DisableTracing { get; set; }
Region Section titled Region nullable string?
Gets or sets a string value that indicates what Azure region this client will run in.
public string? Region { get; set; }
RequestTimeout Section titled RequestTimeout nullable TimeSpan?
Gets or sets the time to wait for the response to come back from the network peer.
public TimeSpan? RequestTimeout { get; set; }