From 28fb55c1de4fcf36e0c1d6e3b3a1672b8c8ac256 Mon Sep 17 00:00:00 2001 From: Yourdax Date: Thu, 9 May 2024 00:59:59 +0400 Subject: [PATCH] =?UTF-8?q?=D0=A3=D1=80=D0=B0=20=D0=BD=D0=B0=D1=88=D0=B5?= =?UTF-8?q?=D0=BB=20=D0=BF=D0=B0=D1=80=D0=BE=D0=BB=D0=B8=20=D0=BF=D1=80?= =?UTF-8?q?=D0=B8=D0=BB=D0=BE=D0=B6=D0=B5=D0=BD=D0=B8=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CarpentryWorkshopDatabase.cs | 2 ++ CarpentryWorkshop/CarpentryWorkshopRestApi/appsettings.json | 2 +- CarpentryWorkshop/CarpentryWorkshopView/App.config | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CarpentryWorkshop/CarpentryWorkshopDatabaseImplement/CarpentryWorkshopDatabase.cs b/CarpentryWorkshop/CarpentryWorkshopDatabaseImplement/CarpentryWorkshopDatabase.cs index 072db41..9038c26 100644 --- a/CarpentryWorkshop/CarpentryWorkshopDatabaseImplement/CarpentryWorkshopDatabase.cs +++ b/CarpentryWorkshop/CarpentryWorkshopDatabaseImplement/CarpentryWorkshopDatabase.cs @@ -17,6 +17,8 @@ namespace CarpentryWorkshopDatabaseImplement optionsBuilder.UseNpgsql(@"Host=localhost;Port=5432;Database=CarpentryWorkshopDatabaseLab51;Username=postgres;Password=postgres"); } base.OnConfiguring(optionsBuilder); + AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true); + AppContext.SetSwitch("Npgsql.DisableDateTimeInfinityConversions", true); } public virtual DbSet Components { set; get; } public virtual DbSet Woods { set; get; } diff --git a/CarpentryWorkshop/CarpentryWorkshopRestApi/appsettings.json b/CarpentryWorkshop/CarpentryWorkshopRestApi/appsettings.json index b4a801c..fe5fad6 100644 --- a/CarpentryWorkshop/CarpentryWorkshopRestApi/appsettings.json +++ b/CarpentryWorkshop/CarpentryWorkshopRestApi/appsettings.json @@ -12,5 +12,5 @@ "PopHost": "pop.gmail.com", "PopPort": "995", "MailLogin": "mailworker2024@gmail.com", - "MailPassword": "lab7zxcqwe" + "MailPassword": "bixb rbag kumt lefa" } diff --git a/CarpentryWorkshop/CarpentryWorkshopView/App.config b/CarpentryWorkshop/CarpentryWorkshopView/App.config index c1d1f17..64eefb6 100644 --- a/CarpentryWorkshop/CarpentryWorkshopView/App.config +++ b/CarpentryWorkshop/CarpentryWorkshopView/App.config @@ -6,6 +6,6 @@ - + \ No newline at end of file