This commit is contained in:
Ismailov_Rovshan 2023-05-19 13:54:44 +04:00
parent c2ed8a645e
commit 0913bbbb34
3 changed files with 13 additions and 2 deletions

View File

@ -17,7 +17,7 @@ namespace FurnitureContracts.BindingModels
public List<MaterialViewModel>? Materials { get; set; }
public List<ISalesSalonsModel>? SalesSalons { get; set; }
public List<SalesSalonsViewModel>? SalesSalons { get; set; }
public DateTime? DateFrom { get; set; }

View File

@ -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);
}

View File

@ -8,6 +8,10 @@
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="7.0.4" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="7.0.4">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="7.0.4">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>