netmash/infrastructure/NDB.Infrastructure.Database.../Repositories/MigrationRepository.cs

22 lines
584 B
C#
Raw Normal View History

2022-01-21 11:19:51 +02:00
using Microsoft.EntityFrameworkCore;
using NDB.Infrastructure.DatabaseMigration.DbContexts;
using System.Threading.Tasks;
namespace NDB.Infrastructure.DatabaseMigration.Repositories
{
internal class MigrationRepository : IMigrationRepository
{
private readonly MigrationDbContext _dbContext;
public MigrationRepository(MigrationDbContext dbContext)
{
_dbContext = dbContext;
}
2022-01-22 01:54:19 +02:00
public async Task ExecuteSqlRaw(string sqlRaw)
2022-01-21 11:19:51 +02:00
{
2022-01-22 01:54:19 +02:00
await _dbContext.Database.ExecuteSqlRawAsync(sqlRaw);
2022-01-21 11:19:51 +02:00
}
}
}