Fixed database context

This commit is contained in:
2024-08-15 14:26:59 +03:00
parent 29fce811d4
commit 25a9d8f86d

View File

@@ -4,7 +4,8 @@ using Microsoft.EntityFrameworkCore;
namespace Infrastructure.Database namespace Infrastructure.Database
{ {
public class DbContext : Microsoft.EntityFrameworkCore.DbContext, IGenericWriter, IGenericReader, IUnitOfWork public class DbContext(DbContextOptions<Infrastructure.Database.DbContext> opts)
: Microsoft.EntityFrameworkCore.DbContext(opts), IGenericWriter, IGenericReader, IUnitOfWork
{ {
protected override void OnModelCreating(ModelBuilder modelBuilder) protected override void OnModelCreating(ModelBuilder modelBuilder)
{ {