DD.WellWorkover.Cloud/ConsoleApp1/Program.cs

59 lines
1.9 KiB
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using AsbCloudDb.Model;
using AsbCloudDb;
using Google.Apis.Drive.v3.Data;
using Microsoft.EntityFrameworkCore;
2022-01-17 17:55:00 +05:00
using System.Net.Mail;
2022-02-28 14:44:26 +05:00
using System.Text.RegularExpressions;
namespace ConsoleApp1
{
//var options = new DbContextOptionsBuilder<AsbCloudDbContext>()
// .UseNpgsql("Host=localhost;Database=postgres;Username=postgres;Password=q;Persist Security Info=True")
// .Options;
//var context = new AsbCloudDbContext(options);
class Program
2021-10-03 20:08:17 +05:00
{
2022-02-28 14:44:26 +05:00
2021-07-28 09:47:13 +05:00
static void Main(/*string[] args*/)
{
2022-02-28 14:44:26 +05:00
var regex = new Regex(@"<[a-zA-Z0-9]+.*>.*<[a-zA-Z]+/*>");
var testHtml = "aa<H1>AAA<h1/><b>asdasd<b/>";
var t = regex.IsMatch(testHtml);
//SendMail.Main();
2022-01-17 17:55:00 +05:00
//DbDemoDataService.AddDemoData();
//.GetAwaiter().GetResult();
Console.WriteLine("End of Test");
Console.ReadLine();
//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
}
}
}