2023-10-20 11:03:14 +05:00
|
|
|
|
|
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;
|
2023-10-20 11:03:14 +05:00
|
|
|
|
using ConsoleApp1.DetectedOperations;
|
2023-02-16 16:27:14 +05:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
2021-10-26 17:22:32 +05:00
|
|
|
|
|
|
|
|
|
namespace ConsoleApp1
|
2021-04-02 17:28:07 +05:00
|
|
|
|
{
|
|
|
|
|
class Program
|
2021-10-03 20:08:17 +05:00
|
|
|
|
{
|
2023-10-20 11:03:14 +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
|
|
|
|
{
|
2023-10-20 11:03:14 +05:00
|
|
|
|
using var db = new AsbCloudDbContext(options);
|
|
|
|
|
|
|
|
|
|
await new DetectedOperationExportService(db).Export(483, CancellationToken.None);
|
|
|
|
|
|
2023-02-16 16:27:14 +05:00
|
|
|
|
}
|
2022-06-17 13:20:48 +05:00
|
|
|
|
}
|
2021-04-02 17:28:07 +05:00
|
|
|
|
}
|