forked from ddrilling/AsbCloudServer
33 lines
1.0 KiB
C#
33 lines
1.0 KiB
C#
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
|
|
{
|
|
public static void Main(/*string[] args*/)
|
|
{
|
|
var options = new DbContextOptionsBuilder<AsbCloudDbContext>()
|
|
.UseNpgsql("Host=localhost;Database=postgres;Username=postgres;Password=q;Persist Security Info=True")
|
|
.Options;
|
|
using var db = new AsbCloudDbContext(options);
|
|
|
|
var cacheDb = new CacheDb();
|
|
var wellService = new WellService(db, new TelemetryTracker(), cacheDb);
|
|
|
|
var wellOperationImportService = new WellOperationImportService();
|
|
|
|
var ops = wellOperationImportService.ParseFile(@"C:\temp\Миграция.xlsx");
|
|
|
|
Console.WriteLine("_");
|
|
}
|
|
}
|
|
}
|