Skip to content
Docs Try Aspire

MySqlConnectorSettings Properties

Class Properties 4 members
Provides the client configuration settings for connecting to a MySQL database using MySqlConnector.
ConnectionString Section titled ConnectionString nullable string?
The connection string of the MySQL database to connect to.
public string? ConnectionString { get; set; }
DisableHealthChecks Section titled DisableHealthChecks bool
Gets or sets a boolean value that indicates whether the database health check is disabled or not.
public bool DisableHealthChecks { get; set; }
Gets or sets a boolean value that indicates whether the OpenTelemetry metrics are disabled or not.
public bool DisableMetrics { get; set; }
Gets or sets a boolean value that indicates whether the OpenTelemetry tracing is disabled or not.
public bool DisableTracing { get; set; }