From 0913bbbb34f65c593549f654e7ae685d321d7dd5 Mon Sep 17 00:00:00 2001 From: Ismailov_Rovshan Date: Fri, 19 May 2023 13:54:44 +0400 Subject: [PATCH] fix --- .../BindingModels/ReportBindingModel.cs | 2 +- .../FurnitureDataBase.cs | 9 ++++++++- .../FurnitureFactoryDataBaseImplement.csproj | 4 ++++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/FurnitureFactory/FurnitureContracts/BindingModels/ReportBindingModel.cs b/FurnitureFactory/FurnitureContracts/BindingModels/ReportBindingModel.cs index ea09938..58c039a 100644 --- a/FurnitureFactory/FurnitureContracts/BindingModels/ReportBindingModel.cs +++ b/FurnitureFactory/FurnitureContracts/BindingModels/ReportBindingModel.cs @@ -17,7 +17,7 @@ namespace FurnitureContracts.BindingModels public List? Materials { get; set; } - public List? SalesSalons { get; set; } + public List? SalesSalons { get; set; } public DateTime? DateFrom { get; set; } diff --git a/FurnitureFactory/FurnitureFactoryDataBaseImplement/FurnitureDataBase.cs b/FurnitureFactory/FurnitureFactoryDataBaseImplement/FurnitureDataBase.cs index 2d760e6..e885dcf 100644 --- a/FurnitureFactory/FurnitureFactoryDataBaseImplement/FurnitureDataBase.cs +++ b/FurnitureFactory/FurnitureFactoryDataBaseImplement/FurnitureDataBase.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Design; using FurnitureFactoryDataBaseImplement.Models; using System; using System.Collections.Generic; @@ -22,7 +23,13 @@ namespace FurnitureFactoryDataBaseImplement { if (optionsBuilder.IsConfigured == false) { - optionsBuilder.UseNpgsql("Host=localhost;Port=5432;Database=FurnitureFactory;Username=postgres;Password=Jus999666Y"); + //optionsBuilder.UseNpgsql("Host=localhost;Port=5432;Database=FurnitureFactory;Username=postgres;Password=postgres"); + optionsBuilder.UseNpgsql(@" + Host=localhost; + Port=5432; + Database=FurnitureFactory; + Username=postgres; + Password=postgres"); } base.OnConfiguring(optionsBuilder); } diff --git a/FurnitureFactory/FurnitureFactoryDataBaseImplement/FurnitureFactoryDataBaseImplement.csproj b/FurnitureFactory/FurnitureFactoryDataBaseImplement/FurnitureFactoryDataBaseImplement.csproj index d5ac261..ec7a554 100644 --- a/FurnitureFactory/FurnitureFactoryDataBaseImplement/FurnitureFactoryDataBaseImplement.csproj +++ b/FurnitureFactory/FurnitureFactoryDataBaseImplement/FurnitureFactoryDataBaseImplement.csproj @@ -8,6 +8,10 @@ + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + all runtime; build; native; contentfiles; analyzers; buildtransitive