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