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

24 lines
578 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-19 09:20:37 +05:00
.HasAnnotation("Relational:Collation", "en_US.utf8");
base.OnModelCreating(modelBuilder);
}
}