From e14cb5037c27d808290d6d3603e5d64dd30995aa Mon Sep 17 00:00:00 2001 From: tellsense Date: Sat, 1 Jun 2024 17:44:07 +0400 Subject: [PATCH] =?UTF-8?q?=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SushiBar/SushiBarContracts/SushiBarContracts.csproj | 4 ++++ SushiBar/SushiBarDatabaseImplement/ClientStorage.cs | 1 + .../SushiBarDatabaseImplement/ImplementationExtension.cs | 3 +-- SushiBar/SushiBarDatabaseImplement/ImplementerStorage.cs | 2 ++ SushiBar/SushiBarDatabaseImplement/SushiBarDatabase.cs | 8 ++++---- SushiBar/SushiBarFileImplement/ImplementationExtension.cs | 4 +--- 6 files changed, 13 insertions(+), 9 deletions(-) diff --git a/SushiBar/SushiBarContracts/SushiBarContracts.csproj b/SushiBar/SushiBarContracts/SushiBarContracts.csproj index 22d1530..8c2ded0 100644 --- a/SushiBar/SushiBarContracts/SushiBarContracts.csproj +++ b/SushiBar/SushiBarContracts/SushiBarContracts.csproj @@ -6,6 +6,10 @@ enable + + + + diff --git a/SushiBar/SushiBarDatabaseImplement/ClientStorage.cs b/SushiBar/SushiBarDatabaseImplement/ClientStorage.cs index 4b411ad..e890fb7 100644 --- a/SushiBar/SushiBarDatabaseImplement/ClientStorage.cs +++ b/SushiBar/SushiBarDatabaseImplement/ClientStorage.cs @@ -2,6 +2,7 @@ using SushiBarContracts.SearchModels; using SushiBarContracts.StoragesContracts; using SushiBarContracts.ViewModels; +using SushiBarDatabaseImplement.Models; using System; using System.Collections.Generic; using System.Linq; diff --git a/SushiBar/SushiBarDatabaseImplement/ImplementationExtension.cs b/SushiBar/SushiBarDatabaseImplement/ImplementationExtension.cs index ca818f5..1ef1726 100644 --- a/SushiBar/SushiBarDatabaseImplement/ImplementationExtension.cs +++ b/SushiBar/SushiBarDatabaseImplement/ImplementationExtension.cs @@ -1,5 +1,4 @@ -using SushiBar.StoragesContracts; -using SushiBarContracts.DI; +using SushiBarContracts.DI; using SushiBarContracts.StoragesContracts; using SushiBarDatabaseImplement.Implements; using System; diff --git a/SushiBar/SushiBarDatabaseImplement/ImplementerStorage.cs b/SushiBar/SushiBarDatabaseImplement/ImplementerStorage.cs index 930d87c..47b0f34 100644 --- a/SushiBar/SushiBarDatabaseImplement/ImplementerStorage.cs +++ b/SushiBar/SushiBarDatabaseImplement/ImplementerStorage.cs @@ -2,12 +2,14 @@ using SushiBarContracts.SearchModels; using SushiBarContracts.StoragesContracts; using SushiBarContracts.ViewModels; +using SushiBarDataModels.Models; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; + namespace SushiBarDatabaseImplement { public class ImplementerStorage : IImplementerStorage diff --git a/SushiBar/SushiBarDatabaseImplement/SushiBarDatabase.cs b/SushiBar/SushiBarDatabaseImplement/SushiBarDatabase.cs index b9db94a..a8b920a 100644 --- a/SushiBar/SushiBarDatabaseImplement/SushiBarDatabase.cs +++ b/SushiBar/SushiBarDatabaseImplement/SushiBarDatabase.cs @@ -5,7 +5,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; using SushiBarDatabaseImplement.Models; -using Microsoft.Extensions.Options; +using SushiBarDataModels.Models; namespace SushiBarDatabaseImplement { @@ -23,12 +23,12 @@ namespace SushiBarDatabaseImplement AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true); AppContext.SetSwitch("Npgsql.DisableDateTimeInfinityConversions", true); } - public virtual DbSet Components { set; get; } + public virtual DbSet Components { set; get; } public virtual DbSet Sushis { set; get; } public virtual DbSet SushiComponents { set; get; } public virtual DbSet Orders { set; get; } - public virtual DbSet Clients { get; set; } - public virtual DbSet Implementers { set; get; } + public virtual DbSet Clients { set; get; } + public virtual DbSet Implementers { set; get; } public virtual DbSet MessageInfos { set; get; } } } \ No newline at end of file diff --git a/SushiBar/SushiBarFileImplement/ImplementationExtension.cs b/SushiBar/SushiBarFileImplement/ImplementationExtension.cs index 80a1933..d4068f5 100644 --- a/SushiBar/SushiBarFileImplement/ImplementationExtension.cs +++ b/SushiBar/SushiBarFileImplement/ImplementationExtension.cs @@ -1,7 +1,5 @@ -using SushiBar.StoragesContracts; -using SushiBarContracts.DI; +using SushiBarContracts.DI; using SushiBarContracts.StoragesContracts; - using SushiBarFileImplement.Implements; using System; using System.Collections.Generic;