using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Configuration; namespace DBConnection.Contexts; /// /// Pulls connection string from 'PostgresSql' and selected with provider 'PostgresSql' /// public class PostgresSqlAppDbContext : AppDbContext { public PostgresSqlAppDbContext(DbContextOptions options, IConfiguration configuration) : base(options, configuration) { } protected override string ConnectionStringName => "PostgresSql"; protected override void UseSqlConnection(DbContextOptionsBuilder builder, string connectionString) { builder.UseNpgsql(connectionString); } }