persistence/DD.Persistence.Database.Postgres/PersistencePostgresContext.cs
Оля Бизюкова dbf4a5ed37
Some checks failed
Unit tests / test (push) Failing after 1m26s
Collation Russian_Russia.1251
2024-12-19 09:17:25 +05:00

23 lines
572 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", "Russian_Russia.1251");
base.OnModelCreating(modelBuilder);
}
}