From 25a9d8f86db00470b395ccc8f3e0620247099dcc Mon Sep 17 00:00:00 2001 From: prtsie Date: Thu, 15 Aug 2024 14:26:59 +0300 Subject: [PATCH] Fixed database context --- SchengenVisaApi/Infrastructure/Database/DbContext.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SchengenVisaApi/Infrastructure/Database/DbContext.cs b/SchengenVisaApi/Infrastructure/Database/DbContext.cs index e3c09f6..6ce2dd0 100644 --- a/SchengenVisaApi/Infrastructure/Database/DbContext.cs +++ b/SchengenVisaApi/Infrastructure/Database/DbContext.cs @@ -4,7 +4,8 @@ using Microsoft.EntityFrameworkCore; namespace Infrastructure.Database { - public class DbContext : Microsoft.EntityFrameworkCore.DbContext, IGenericWriter, IGenericReader, IUnitOfWork + public class DbContext(DbContextOptions opts) + : Microsoft.EntityFrameworkCore.DbContext(opts), IGenericWriter, IGenericReader, IUnitOfWork { protected override void OnModelCreating(ModelBuilder modelBuilder) {