feat: add wrap DbContext for OnModelCreating

This commit is contained in:
Polianin Nikita 2024-05-30 20:10:13 +03:00
parent 78a242f4c3
commit 53a0439edb

View File

@ -0,0 +1,9 @@
using Microsoft.EntityFrameworkCore;
namespace Mirea.Api.DataAccess.Persistence.Common;
public abstract class BaseDbContext<TContext>(DbContextOptions<TContext> options) : DbContext(options) where TContext : DbContext
{
public void ApplyConfigurations(ModelBuilder modelBuilder) =>
base.OnModelCreating(modelBuilder);
}