| | | 1 | | using ArturRios.Data.Relational.Core.Configuration; |
| | | 2 | | using ArturRios.Data.Relational.Core.Providers; |
| | | 3 | | using Microsoft.EntityFrameworkCore; |
| | | 4 | | |
| | | 5 | | namespace ArturRios.Data.PostgreSql; |
| | | 6 | | |
| | | 7 | | /// <summary> |
| | | 8 | | /// <see cref="IDatabaseProvider" /> that configures EF Core to use PostgreSQL via Npgsql. |
| | | 9 | | /// </summary> |
| | | 10 | | public class PostgreSqlProvider : IDatabaseProvider |
| | | 11 | | { |
| | | 12 | | /// <inheritdoc /> |
| | 1 | 13 | | public DatabaseType Type => DatabaseType.PostgreSql; |
| | | 14 | | |
| | | 15 | | /// <inheritdoc /> |
| | | 16 | | public void Configure(DbContextOptionsBuilder builder, string connectionString) => |
| | 0 | 17 | | builder.UseNpgsql(connectionString); |
| | | 18 | | } |