Class MySqlServiceCollectionExtensions
Inheritance
System.Object
MySqlServiceCollectionExtensions
Namespace: Steeltoe.Connectors.MySql
Assembly: Steeltoe.Connectors.dll
Syntax
public static class MySqlServiceCollectionExtensions : object
Methods
| Edit this page View SourceAddMySql(IServiceCollection, IConfiguration)
Registers a ConnectorFactory<TOptions, TConnection> (with type parameters MySqlOptions and MySqlConnector.MySqlConnection or MySql.Data.MySqlClient.MySqlConnection) to connect to a MySQL compatible database.
Declaration
public static IServiceCollection AddMySql(this IServiceCollection services, IConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The |
IConfiguration | configuration | The |
Returns
Type | Description |
---|---|
IServiceCollection | The incoming |
AddMySql(IServiceCollection, IConfiguration, Nullable<Action<ConnectorAddOptionsBuilder>>)
Registers a ConnectorFactory<TOptions, TConnection> (with type parameters MySqlOptions and MySqlConnector.MySqlConnection or MySql.Data.MySqlClient.MySqlConnection) to connect to a MySQL compatible database.
Declaration
public static IServiceCollection AddMySql(this IServiceCollection services, IConfiguration configuration, Action<ConnectorAddOptionsBuilder>? addAction)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The |
IConfiguration | configuration | The |
System.Nullable<Action<ConnectorAddOptionsBuilder>> | addAction | An optional delegate to configure this connector. |
Returns
Type | Description |
---|---|
IServiceCollection | The incoming |