2021-10-26 17:22:32 +05:00
|
|
|
|
using System;
|
2021-10-27 15:00:58 +05:00
|
|
|
|
using System.Collections.Generic;
|
2021-11-10 17:04:07 +05:00
|
|
|
|
using System.Globalization;
|
2021-10-26 17:22:32 +05:00
|
|
|
|
using System.IO;
|
2021-10-27 15:00:58 +05:00
|
|
|
|
using System.Linq;
|
2021-11-10 17:04:07 +05:00
|
|
|
|
using AsbCloudDb.Model;
|
2021-11-15 14:56:11 +05:00
|
|
|
|
using AsbCloudDb;
|
2021-10-27 15:00:58 +05:00
|
|
|
|
using Google.Apis.Drive.v3.Data;
|
2021-11-10 17:04:07 +05:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
2022-01-17 17:55:00 +05:00
|
|
|
|
using System.Net.Mail;
|
2021-10-26 17:22:32 +05:00
|
|
|
|
|
|
|
|
|
namespace ConsoleApp1
|
2021-04-02 17:28:07 +05:00
|
|
|
|
{
|
2021-09-15 10:43:46 +05:00
|
|
|
|
//var options = new DbContextOptionsBuilder<AsbCloudDbContext>()
|
|
|
|
|
// .UseNpgsql("Host=localhost;Database=postgres;Username=postgres;Password=q;Persist Security Info=True")
|
|
|
|
|
// .Options;
|
|
|
|
|
//var context = new AsbCloudDbContext(options);
|
|
|
|
|
|
2021-04-02 17:28:07 +05:00
|
|
|
|
class Program
|
2021-10-03 20:08:17 +05:00
|
|
|
|
{
|
2021-07-28 09:47:13 +05:00
|
|
|
|
static void Main(/*string[] args*/)
|
2021-11-17 10:52:03 +05:00
|
|
|
|
{
|
2022-01-17 17:55:00 +05:00
|
|
|
|
SendMail.Main();
|
|
|
|
|
|
2022-01-10 18:12:31 +05:00
|
|
|
|
//DbDemoDataService.AddDemoData();
|
2021-12-02 15:36:51 +05:00
|
|
|
|
//.GetAwaiter().GetResult();
|
|
|
|
|
|
|
|
|
|
Console.WriteLine("End of Test");
|
|
|
|
|
Console.ReadLine();
|
2021-11-17 10:52:03 +05:00
|
|
|
|
//var options = new DbContextOptionsBuilder<AsbCloudDbContext>()
|
|
|
|
|
// .UseNpgsql("Host=localhost;Database=postgres;Username=postgres;Password=q;Persist Security Info=True")
|
|
|
|
|
// .Options;
|
|
|
|
|
//var context = new AsbCloudDbContext(options);
|
|
|
|
|
|
|
|
|
|
//var sett = context.Set<TelemetryDataSaub>();
|
|
|
|
|
//var r = context.Database.ExecInsertOrUpdateAsync(sett, new List<TelemetryDataSaub> {
|
|
|
|
|
// new TelemetryDataSaub
|
|
|
|
|
// {
|
|
|
|
|
// Date = DateTime.Now,
|
|
|
|
|
// IdTelemetry = 3,
|
|
|
|
|
// AxialLoad = 100.1f,
|
|
|
|
|
// },
|
|
|
|
|
// new TelemetryDataSaub
|
|
|
|
|
// {
|
|
|
|
|
// Date = DateTime.Now.AddSeconds(2),
|
|
|
|
|
// IdTelemetry = 3,
|
|
|
|
|
// AxialLoad = 100.2f,
|
|
|
|
|
// },
|
|
|
|
|
//}, System.Threading.CancellationToken.None).Result;
|
2021-10-06 16:30:46 +05:00
|
|
|
|
}
|
2021-04-02 17:28:07 +05:00
|
|
|
|
}
|
|
|
|
|
}
|