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() { } }