using Pf2e.Database; using Pf2e.Scrapper.Processors.Attributes; using Pf2e.Scrapper.Processors.Attributes.Enum; using Pf2e.Scrapper.Processors.Definitions; namespace Pf2e.Scrapper.Processors.General; [Processor("truncate", Description = "Отчистка таблиц БД", Group = ProcessorGroupEnum.General)] public class DatabaseTruncateProcessor : IProcessor { public void Process() { using Pf2eDbContext context = new(); string _ = context.Entities.Truncate() + "\n" + context.TruncateAll(); } public void Save() { } }