persistence/DD.Persistence.Database.Postgres/PersistencePostgresContext.cs
Оля Бизюкова 6504a816d1
Some checks failed
Unit tests / test (push) Failing after 27s
Закомментирована строчка HasPostgresExtension("adminpack")
2024-12-19 09:38:47 +05:00

24 lines
578 B
C#

using Microsoft.EntityFrameworkCore;
namespace DD.Persistence.Database.Model;
/// <summary>
/// EF êîíòåêñò äëÿ ÁÄ Postgres
/// </summary>
public partial class PersistencePostgresContext : PersistenceDbContext
{
public PersistencePostgresContext(DbContextOptions options)
: base(options)
{ }
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder
//.HasPostgresExtension("adminpack")
.HasAnnotation("Relational:Collation", "en_US.utf8");
base.OnModelCreating(modelBuilder);
}
}