From 6c025ee9715465d81511682d8be209ad04077295 Mon Sep 17 00:00:00 2001 From: tellsense Date: Fri, 3 May 2024 23:18:28 +0400 Subject: [PATCH] =?UTF-8?q?=D0=BF=D0=BE=D1=87=D1=82=D0=B8=20=D0=B3=D0=BE?= =?UTF-8?q?=D1=82=D0=BE=D0=B2=D0=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ClientStorage.cs | 2 +- ....cs => 20240503191244_Initial.Designer.cs} | 2 +- ...8_Initial.cs => 20240503191244_Initial.cs} | 0 .../SushiBarDatabase.cs | 2 +- SushiBar/SushiBarView/Program.cs | 47 ++++++++++--------- 5 files changed, 28 insertions(+), 25 deletions(-) rename SushiBar/SushiBarDatabaseImplement/Migrations/{20240503182348_Initial.Designer.cs => 20240503191244_Initial.Designer.cs} (99%) rename SushiBar/SushiBarDatabaseImplement/Migrations/{20240503182348_Initial.cs => 20240503191244_Initial.cs} (100%) diff --git a/SushiBar/SushiBarDatabaseImplement/ClientStorage.cs b/SushiBar/SushiBarDatabaseImplement/ClientStorage.cs index 75cc15d..b12a486 100644 --- a/SushiBar/SushiBarDatabaseImplement/ClientStorage.cs +++ b/SushiBar/SushiBarDatabaseImplement/ClientStorage.cs @@ -8,7 +8,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; -namespace SushiBarDatabaseImplement +namespace SushiBarDatabaseImplement.Implements { public class ClientStorage : IClientStorage { diff --git a/SushiBar/SushiBarDatabaseImplement/Migrations/20240503182348_Initial.Designer.cs b/SushiBar/SushiBarDatabaseImplement/Migrations/20240503191244_Initial.Designer.cs similarity index 99% rename from SushiBar/SushiBarDatabaseImplement/Migrations/20240503182348_Initial.Designer.cs rename to SushiBar/SushiBarDatabaseImplement/Migrations/20240503191244_Initial.Designer.cs index 99d2ed5..0fb85b5 100644 --- a/SushiBar/SushiBarDatabaseImplement/Migrations/20240503182348_Initial.Designer.cs +++ b/SushiBar/SushiBarDatabaseImplement/Migrations/20240503191244_Initial.Designer.cs @@ -12,7 +12,7 @@ using SushiBarDatabaseImplement; namespace SushiBarDatabaseImplement.Migrations { [DbContext(typeof(SushiBarDatabase))] - [Migration("20240503182348_Initial")] + [Migration("20240503191244_Initial")] partial class Initial { /// diff --git a/SushiBar/SushiBarDatabaseImplement/Migrations/20240503182348_Initial.cs b/SushiBar/SushiBarDatabaseImplement/Migrations/20240503191244_Initial.cs similarity index 100% rename from SushiBar/SushiBarDatabaseImplement/Migrations/20240503182348_Initial.cs rename to SushiBar/SushiBarDatabaseImplement/Migrations/20240503191244_Initial.cs diff --git a/SushiBar/SushiBarDatabaseImplement/SushiBarDatabase.cs b/SushiBar/SushiBarDatabaseImplement/SushiBarDatabase.cs index b0a3fa0..32efb71 100644 --- a/SushiBar/SushiBarDatabaseImplement/SushiBarDatabase.cs +++ b/SushiBar/SushiBarDatabaseImplement/SushiBarDatabase.cs @@ -14,7 +14,7 @@ namespace SushiBarDatabaseImplement { if (!optionsBuilder.IsConfigured) { - optionsBuilder.UseSqlServer(@"Data Source=localhost\SQLEXPRESS;Initial Catalog=SushiBarDatabaseFull5labx3;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True"); + optionsBuilder.UseSqlServer(@"Data Source=localhost\SQLEXPRESS;Initial Catalog=SushiBarDatabaseFull5labx4;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True"); } base.OnConfiguring(optionsBuilder); } diff --git a/SushiBar/SushiBarView/Program.cs b/SushiBar/SushiBarView/Program.cs index a2f4774..21cb9cc 100644 --- a/SushiBar/SushiBarView/Program.cs +++ b/SushiBar/SushiBarView/Program.cs @@ -7,6 +7,8 @@ using SushiBarContracts.StoragesContracts; using NLog.Extensions.Logging; using SushiBarBusinessLogic.OfficePackage.Implements; using SushiBarBusinessLogic.OfficePackage; +using Microsoft.EntityFrameworkCore.Design; +using SushiBarBusinessLogic; namespace SushiBarView @@ -34,31 +36,32 @@ namespace SushiBarView option.SetMinimumLevel(LogLevel.Information); option.AddNLog("nlog.config"); }); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); + services.AddTransient(); + services.AddTransient(); + services.AddTransient(); + services.AddTransient(); + services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); + services.AddTransient(); + services.AddTransient(); + services.AddTransient(); services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); + services.AddTransient(); + services.AddTransient(); + services.AddTransient(); - services.AddTransient(); - } + services.AddTransient(); + services.AddTransient(); + services.AddTransient(); + services.AddTransient(); + services.AddTransient(); + services.AddTransient(); + services.AddTransient(); + services.AddTransient(); + services.AddTransient(); + services.AddTransient(); + services.AddTransient(); + } } } \ No newline at end of file