DD.WellWorkover.Cloud/ConsoleApp1/Program.cs

25 lines
724 B
C#
Raw Normal View History


2023-02-16 16:27:14 +05:00
using System.Threading;
2022-10-06 13:49:20 +05:00
using System.Threading.Tasks;
2023-02-16 16:27:14 +05:00
using AsbCloudDb.Model;
using ConsoleApp1.DetectedOperations;
2023-02-16 16:27:14 +05:00
using Microsoft.EntityFrameworkCore;
namespace ConsoleApp1
{
class Program
2021-10-03 20:08:17 +05:00
{
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*/)
2022-10-06 13:49:20 +05:00
{
using var db = new AsbCloudDbContext(options);
await new DetectedOperationExportService(db).Export(483, CancellationToken.None);
2023-02-16 16:27:14 +05:00
}
}
}