MireaBackend/SqlData/Persistence/DbInitializer.cs
Polianin Nikita 827cdaf9f9
All checks were successful
.NET Test Pipeline / build-and-test (pull_request) Successful in 2m1s
refactor: change create database to migrate
2024-06-01 05:43:00 +03:00

11 lines
228 B
C#

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