| | | 1 | | using ArturRios.Data.Relational.Core.Providers; |
| | | 2 | | using Microsoft.Extensions.DependencyInjection; |
| | | 3 | | |
| | | 4 | | namespace ArturRios.Data.MySql; |
| | | 5 | | |
| | | 6 | | /// <summary> |
| | | 7 | | /// DI registration for the MySQL provider. |
| | | 8 | | /// </summary> |
| | | 9 | | public static class ServiceCollectionExtensions |
| | | 10 | | { |
| | | 11 | | /// <summary>Registers the MySQL <see cref="IDatabaseProvider"/>.</summary> |
| | | 12 | | public static IServiceCollection AddMySqlProvider(this IServiceCollection services) |
| | | 13 | | { |
| | 4 | 14 | | services.AddSingleton<IDatabaseProvider, MySqlProvider>(); |
| | 4 | 15 | | return services; |
| | | 16 | | } |
| | | 17 | | } |