mirror of
https://github.com/yawaflua/yaflay.ru.git
synced 2026-02-04 10:54:12 +02:00
hotfix time
This commit is contained in:
@@ -6,7 +6,9 @@ namespace yaflay.ru.Models
|
|||||||
public class AppDbContext : DbContext
|
public class AppDbContext : DbContext
|
||||||
{
|
{
|
||||||
|
|
||||||
public AppDbContext(DbContextOptions<AppDbContext> options) : base(options) {}
|
public AppDbContext(DbContextOptions<AppDbContext> options) : base(options) {
|
||||||
|
AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true);
|
||||||
|
}
|
||||||
|
|
||||||
public DbSet<Blogs> Blogs { get; set; }
|
public DbSet<Blogs> Blogs { get; set; }
|
||||||
public DbSet<Comments> Comments { get; set; }
|
public DbSet<Comments> Comments { get; set; }
|
||||||
|
|||||||
Reference in New Issue
Block a user