feat: add a database creation class (initial)

This commit is contained in:
Polianin Nikita 2024-01-26 19:37:42 +03:00
parent 2b02cfb616
commit 459d11dd6b

View File

@ -0,0 +1,11 @@
using Microsoft.EntityFrameworkCore;
namespace Mirea.Api.DataAccess.Persistence;
public static class DbInitializer
{
public static void Initialize(DbContext dbContext)
{
dbContext.Database.EnsureCreated();
}
}