feat: add a database creation class (initial)
This commit is contained in:
parent
2b02cfb616
commit
459d11dd6b
11
Persistence/DbInitializer.cs
Normal file
11
Persistence/DbInitializer.cs
Normal 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();
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user