persistence/DD.Persistence.Database.Postgres/PersistencePostgresContext.cs
Оля Бизюкова 0d3fb8fd08
Some checks failed
Unit tests / test (push) Failing after 1m14s
Collation en_US.utf8
2024-12-19 09:20:37 +05:00

23 lines
563 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);
}
}