MireaBackend/Persistence/DbInitializer.cs

11 lines
234 B
C#
Raw Normal View History

using Microsoft.EntityFrameworkCore;
namespace Mirea.Api.DataAccess.Persistence;
public static class DbInitializer
{
public static void Initialize(DbContext dbContext)
{
dbContext.Database.EnsureCreated();
}
}