using AsbCloudDb.Model; using AsbCloudInfrastructure.Services; using AsbCloudInfrastructure.Services.Cache; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { public static class DebugWellOperationImportService { private static DbContextOptions options = new DbContextOptionsBuilder() .UseNpgsql("Host=localhost;Database=postgres;Username=postgres;Password=q;Persist Security Info=True") .Options; public static void Main(/*string[] args*/) { using var db = new AsbCloudDbContext(options); var wellOperationImportService = new WellOperationImportService(db); var ops = wellOperationImportService.ParseFile(@"C:\temp\Миграция.xlsx"); Console.WriteLine("_"); } } }