From 385937ee685d5c74a000a8fc23fd7b380960c0d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9D=D0=B8=D0=BA=D0=BE=D0=BB=D0=B0=D0=B9?= Date: Wed, 24 May 2023 00:06:43 +0400 Subject: [PATCH] =?UTF-8?q?=D1=83=D0=B4=D0=B0=D0=BB=D0=B8=D0=BB=20=D0=B1?= =?UTF-8?q?=D0=B5=D1=81=D0=BF=D0=BE=D0=BB=D0=B5=D0=B7=D0=BD=D1=8B=D0=B9=20?= =?UTF-8?q?=D0=BA=D0=BE=D0=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BindingModels/MessageInfoBindingModel.cs | 19 ------------------- .../Models/IMessageInfoModel.cs | 17 ----------------- .../HardwareShopDatabase.cs | 2 +- 3 files changed, 1 insertion(+), 37 deletions(-) delete mode 100644 HardwareShop/HardwareShopContracts/BindingModels/MessageInfoBindingModel.cs delete mode 100644 HardwareShop/HardwareShopDataModels/Models/IMessageInfoModel.cs diff --git a/HardwareShop/HardwareShopContracts/BindingModels/MessageInfoBindingModel.cs b/HardwareShop/HardwareShopContracts/BindingModels/MessageInfoBindingModel.cs deleted file mode 100644 index dac2eb9..0000000 --- a/HardwareShop/HardwareShopContracts/BindingModels/MessageInfoBindingModel.cs +++ /dev/null @@ -1,19 +0,0 @@ -using HardwareShopDataModels.Models; - -namespace HardwareShopContracts.BindingModels -{ - public class MessageInfoBindingModel : IMessageInfoModel - { - public string MessageId { get; set; } = string.Empty; - - public int? UserId { get; set; } - - public string SenderName { get; set; } = string.Empty; - - public string Subject { get; set; } = string.Empty; - - public string Body { get; set; } = string.Empty; - - public DateTime DateDelivery { get; set; } - } -} \ No newline at end of file diff --git a/HardwareShop/HardwareShopDataModels/Models/IMessageInfoModel.cs b/HardwareShop/HardwareShopDataModels/Models/IMessageInfoModel.cs deleted file mode 100644 index 06afb02..0000000 --- a/HardwareShop/HardwareShopDataModels/Models/IMessageInfoModel.cs +++ /dev/null @@ -1,17 +0,0 @@ -namespace HardwareShopDataModels.Models -{ - public interface IMessageInfoModel - { - string MessageId { get; } - - int? UserId { get; } - - string SenderName { get; } - - DateTime DateDelivery { get; } - - string Subject { get; } - - string Body { get; } - } -} \ No newline at end of file diff --git a/HardwareShop/HardwareShopDatabaseImplement/HardwareShopDatabase.cs b/HardwareShop/HardwareShopDatabaseImplement/HardwareShopDatabase.cs index 464bb85..6a3dbc8 100644 --- a/HardwareShop/HardwareShopDatabaseImplement/HardwareShopDatabase.cs +++ b/HardwareShop/HardwareShopDatabaseImplement/HardwareShopDatabase.cs @@ -11,7 +11,7 @@ namespace HardwareShopDatabaseImplement { protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { - optionsBuilder.UseNpgsql("Host=localhost;Port=5432;Database=Computer_Hardware_Store1;Username=user;Password=12345"); + optionsBuilder.UseNpgsql("Host=localhost;Port=5432;Database=Computer_Hardware_Store5;Username=postgres;Password=1234"); AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true); }