DD.WellWorkover.Cloud/ConsoleApp1/Program.cs

25 lines
724 B
C#

using System.Threading;
using System.Threading.Tasks;
using AsbCloudDb.Model;
using ConsoleApp1.DetectedOperations;
using Microsoft.EntityFrameworkCore;
namespace ConsoleApp1
{
class Program
{
private static DbContextOptions<AsbCloudDbContext> options = new DbContextOptionsBuilder<AsbCloudDbContext>()
.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);
}
}
}