MongoDBEntityFrameworkCoreSettings
Class sealed net9.0
Provides the client configuration settings for connecting to a MongoDB database using EntityFrameworkCore.
namespace Aspire.MongoDB.EntityFrameworkCore;
public sealed class MongoDBEntityFrameworkCoreSettings{ // ...} 6 members
Constructors1
Section titled ConstructorsProperties5
Section titled PropertiesConnectionStringget; setstring? Gets or sets the connection string of the MongoDB database to connect to.
DatabaseNameget; setstring? Gets or sets the name of the MongoDB database to connect to.
DisableHealthChecksget; setbool Gets or sets a boolean value that indicates whether the MongoDB health check is disabled or not.
DisableTracingget; setbool Gets or sets a boolean value that indicates whether the OpenTelemetry tracing is disabled or not.
HealthCheckTimeoutget; setint? Gets or sets a integer value that indicates the MongoDB health check timeout in milliseconds.