Глобальный рефакторинг пространств имён
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using Pf2e.Scrapper.Processors.Attributes;
|
||||
using Pf2e.Scrapper.Processors.Definitions;
|
||||
using Pf2e.Database;
|
||||
|
||||
namespace Pf2e.Scrapper.Processors.General;
|
||||
|
||||
[Processor("truncate", Description = "Отчистка таблиц БД", Group = ProcessorGroupEnum.General)]
|
||||
internal class DatabaseTruncateProcessor : IProcessor
|
||||
{
|
||||
public void Process()
|
||||
{
|
||||
using Pf2eDbContext context = new();
|
||||
string _ = context.Entities.Truncate() + "\n" + context.TruncateAll();
|
||||
}
|
||||
|
||||
public void Save() { }
|
||||
}
|
||||
Reference in New Issue
Block a user