Add Application configuration #11
9
SqlData/Persistence/Common/BaseDbContext.cs
Normal file
9
SqlData/Persistence/Common/BaseDbContext.cs
Normal 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);
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user