using System.Threading; using System.Threading.Tasks; using AsbCloudDb.Model; using ConsoleApp1.DetectedOperations; using Microsoft.EntityFrameworkCore; namespace ConsoleApp1 { class Program { private static DbContextOptions options = new DbContextOptionsBuilder() .UseNpgsql("Host=localhost;Database=postgres;Port=5433;Username=postgres;Password=root;Persist Security Info=True") .Options; static async Task Main(/*string[] args*/) { using var db = new AsbCloudDbContext(options); await new DetectedOperationExportService(db).Export(483, CancellationToken.None); } } }