AspireMySqlConnectorExtensions
Class static net10.0
Extension methods for connecting MySQL database with MySqlConnector client
namespace Microsoft.Extensions.Hosting;
public static class AspireMySqlConnectorExtensions{ // ...}Methods2
Section titled MethodsAddKeyedMySqlDataSource(IHostApplicationBuilder, string, Action<MySqlConnectorSettings>)extension Registers
MySqlDataSource as a keyed service for given name for connecting MySQL database with MySqlConnector client. Configures health check, logging and telemetry for the MySqlConnector client. AddMySqlDataSource(IHostApplicationBuilder, string, Action<MySqlConnectorSettings>)extension Registers
MySqlDataSource service for connecting MySQL database with MySqlConnector client. Configures health check, logging and telemetry for the MySqlConnector client.