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