You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add the following overload to MySqlConnector.DependencyInjection:
publicstatic IServiceCollection AddMySqlDataSource(thisIServiceCollectionserviceCollection,string?connectionString,Action<IServiceProvider,MySqlDataSourceBuilder>dataSourceBuilderAction,// THIS IS THE CHANGEServiceLifetimeconnectionLifetime= ServiceLifetime.Transient,ServiceLifetimedataSourceLifetime= ServiceLifetime.Singleton);
This would allow users to configure the MySqlDataSourceBuilder from services, e.g., getting the connection string or a periodic password provider from services. (Without having to recreate MySqlConnector.DependencyInjection themselves.)
Add the following overload to MySqlConnector.DependencyInjection:
This would allow users to configure the
MySqlDataSourceBuilder
from services, e.g., getting the connection string or a periodic password provider from services. (Without having to recreate MySqlConnector.DependencyInjection themselves.)Should align with npgsql/npgsql#4822 on final API.
The text was updated successfully, but these errors were encountered: