fix
This commit is contained in:
parent
d28125e92d
commit
e1bc27415a
@ -8,6 +8,10 @@
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="DocumentFormat.OpenXml" Version="2.20.0" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="7.0.4">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.Extensions.Logging" Version="7.0.0" />
|
||||
<PackageReference Include="PdfSharp.MigraDoc.Standard" Version="1.51.15" />
|
||||
<PackageReference Include="System.Text.Encoding" Version="4.3.0" />
|
||||
|
@ -10,7 +10,6 @@ using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Reflection.Metadata;
|
||||
using System.Runtime.ConstrainedExecution;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using HeadsetModule = FurnitureFactoryDataBaseImplement.Models.HeadsetModule;
|
||||
using System.Threading.Tasks;
|
||||
@ -23,15 +22,13 @@ namespace FurnitureFactoryDataBaseImplement
|
||||
{
|
||||
if (optionsBuilder.IsConfigured == false)
|
||||
{
|
||||
optionsBuilder.UseNpgsql("Server=PostgreSQL;Host=localhost;Port=5432;Database=FurnitureFactoryDataBase;Username=postgres;Password=postgres");
|
||||
optionsBuilder.UseNpgsql("Host=localhost;Port=5432;Database=FurnitureFactory;Username=postgres;Password=Jus999666Y");
|
||||
}
|
||||
base.OnConfiguring(optionsBuilder);
|
||||
}
|
||||
|
||||
public virtual DbSet<Manager> Managers { set; get; }
|
||||
|
||||
public virtual DbSet<SalesSalons> SalesSalons { set; get; }
|
||||
|
||||
public virtual DbSet<Headset> Headsets { set; get; }
|
||||
public virtual DbSet<HeadsetSalesSalons> HeadsetSalesSalons { set; get; }
|
||||
public virtual DbSet<Orders> Orders { set; get; }
|
||||
@ -40,9 +37,7 @@ namespace FurnitureFactoryDataBaseImplement
|
||||
public virtual DbSet<FurnitureMaterial> FurnitureMaterials { set; get; }
|
||||
public virtual DbSet<Furniture> Furnitures { set; get; }
|
||||
public virtual DbSet<Master> Masters { set; get; }
|
||||
|
||||
public virtual DbSet<HeadsetModuleMaterial> HeadsetModuleMaterials { set; get; }
|
||||
|
||||
public virtual DbSet<Material> Materials { set; get; }
|
||||
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ using FurnitureContracts.SearchModels;
|
||||
|
||||
namespace FurnitureFactoryDataBaseImplement.Models
|
||||
{
|
||||
public class Headset
|
||||
public class Headset : IHeadsetModel
|
||||
{
|
||||
[Required]
|
||||
public string Title { get; set; } = string.Empty;
|
||||
|
@ -12,7 +12,7 @@ using FurnitureContracts.SearchModels;
|
||||
|
||||
namespace FurnitureFactoryDataBaseImplement.Models
|
||||
{
|
||||
public class Manager
|
||||
public class Manager : IManagerModel
|
||||
{
|
||||
[Required]
|
||||
public string UserName { get; set; } = string.Empty;
|
||||
|
@ -12,7 +12,7 @@ using FurnitureContracts.ViewModel;
|
||||
|
||||
namespace FurnitureFactoryDataBaseImplement.Models
|
||||
{
|
||||
public class SalesSalons
|
||||
public class SalesSalons : ISalesSalonsModel
|
||||
{
|
||||
|
||||
[Required]
|
||||
|
Loading…
Reference in New Issue
Block a user