refactor(aihit): удален старый проект синхронизации aihit. Удалены таблицы из БД.
This commit is contained in:
@@ -1,39 +0,0 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using PARR.DAL.Context;
|
||||
using PARR.DAL.Models.AIHIT;
|
||||
using PARR.DAL.Services.Abstracts;
|
||||
using PARR.DAL.Services.Interfaces.AIHIT;
|
||||
|
||||
namespace PARR.DAL.Services.Implementations.AIHIT
|
||||
{
|
||||
internal class RawDataEKService : BaseService<RawDataEK>, IRawDataEKService
|
||||
{
|
||||
private readonly DataContext dataContext;
|
||||
private readonly ILogger<RawDataEKService> logger;
|
||||
|
||||
public RawDataEKService(DataContext dataContext, ILogger<RawDataEKService> logger) : base(logger)
|
||||
{
|
||||
this.dataContext = dataContext;
|
||||
this.logger = logger;
|
||||
}
|
||||
|
||||
|
||||
public void DeleteAll()
|
||||
{
|
||||
var startCount = EntitySet.Count();
|
||||
if (startCount > 0)
|
||||
{
|
||||
EntitiContext.RawDataEKs.RemoveRange(EntitySet);
|
||||
logger.LogInformation($"Из таблицы RawDataEK удалено {startCount} записей");
|
||||
EntitiContext.SaveChanges();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
protected override DbSet<RawDataEK> EntitySet => dataContext.RawDataEKs;
|
||||
|
||||
protected override DataContext EntitiContext => dataContext;
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using PARR.DAL.Context;
|
||||
using PARR.DAL.Models.AIHIT;
|
||||
using PARR.DAL.Services.Abstracts;
|
||||
using PARR.DAL.Services.Interfaces.AIHIT;
|
||||
|
||||
namespace PARR.DAL.Services.Implementations.AIHIT
|
||||
{
|
||||
internal class SettingService : BaseService<Setting>, ISettingService
|
||||
{
|
||||
private readonly DataContext dataContext;
|
||||
private readonly ILogger<SettingService> logger;
|
||||
public SettingService(DataContext dataContext, ILogger<SettingService> logger) : base(logger)
|
||||
{
|
||||
this.dataContext = dataContext;
|
||||
this.logger = logger;
|
||||
}
|
||||
|
||||
protected override DbSet<Setting> EntitySet => dataContext.Settings;
|
||||
protected override DataContext EntitiContext => dataContext;
|
||||
}
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
using PARR.DAL.Services.Interfaces.Base;
|
||||
|
||||
namespace PARR.DAL.Services.Interfaces.AIHIT
|
||||
{
|
||||
public interface IRawDataEKService : IBaseService<Models.AIHIT.RawDataEK>
|
||||
{
|
||||
void DeleteAll();
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
using PARR.DAL.Services.Interfaces.Base;
|
||||
|
||||
namespace PARR.DAL.Services.Interfaces.AIHIT
|
||||
{
|
||||
public interface ISettingService : IBaseService<Models.AIHIT.Setting>
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user