persistence/DD.Persistence.Database.Postgres/PersistencePostgresContext.cs

23 lines
560 B
C#
Raw Normal View History

using Microsoft.EntityFrameworkCore;
namespace DD.Persistence.Database.Model;
/// <summary>
/// EF <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><> Postgres
/// </summary>
public partial class PersistencePostgresContext : PersistenceDbContext
{
public PersistencePostgresContext(DbContextOptions options)
: base(options)
{ }
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.HasPostgresExtension("adminpack")
2024-12-18 16:16:02 +05:00
.HasAnnotation("Relational:Collation", "C.UTF-8");
base.OnModelCreating(modelBuilder);
}
}