Class MongoDbProviderOptions
Configuration options for MongoDB provider.
public sealed class MongoDbProviderOptions
- Inheritance
-
MongoDbProviderOptions
- Inherited Members
Properties
ConnectTimeout
Gets or sets the connection timeout in seconds.
[Range(1, 2147483647)]
public int ConnectTimeout { get; set; }
Property Value
- int
The connection timeout in seconds.
ConnectionString
Gets or sets the connection string.
[Required]
public string ConnectionString { get; set; }
Property Value
- string
The connection string.
DatabaseName
Gets or sets the database name.
[Required]
public string DatabaseName { get; set; }
Property Value
- string
The database name.
IsReadOnly
Gets or sets a value indicating whether this is a read-only provider.
public bool IsReadOnly { get; set; }
Property Value
Name
Gets or sets the provider name.
public string? Name { get; set; }
Property Value
- string
The provider name.
Pooling
Gets or sets the connection pooling options.
public MongoDbPoolingOptions Pooling { get; set; }
Property Value
- MongoDbPoolingOptions
The connection pooling options.
RetryCount
Gets or sets the retry count for operations.
[Range(0, 2147483647)]
public int RetryCount { get; set; }
Property Value
- int
The retry count for operations.
ServerSelectionTimeout
Gets or sets the server selection timeout in seconds.
[Range(1, 2147483647)]
public int ServerSelectionTimeout { get; set; }
Property Value
- int
The server selection timeout in seconds.
UseSsl
Gets or sets a value indicating whether to use SSL/TLS.
public bool UseSsl { get; set; }
Property Value
UseTransactions
Gets or sets a value indicating whether to use transactions.
public bool UseTransactions { get; set; }