using Microsoft.EntityFrameworkCore; namespace DD.Persistence.Database.Model; /// /// EF контекст для БД Postgres /// public partial class PersistencePostgresContext : PersistenceDbContext { public PersistencePostgresContext(DbContextOptions options) : base(options) { } protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.HasPostgresExtension("adminpack") .HasAnnotation("Relational:Collation", "Russian_Russia.1251"); base.OnModelCreating(modelBuilder); } }