persistence/DD.Persistence.Database.Postgres/PersistencePostgresContext.cs
Olga Nemt e881fc81ad
Some checks failed
Run Tests / run_tests (push) Failing after 1m40s
+
2024-12-18 16:16:02 +05:00

23 lines
560 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", "C.UTF-8");
base.OnModelCreating(modelBuilder);
}
}