исправление ошибок

This commit is contained in:
bekodeg 2024-04-25 22:38:28 +04:00
parent 816fdcb208
commit e1c6fd8286
14 changed files with 54 additions and 13 deletions

View File

@ -34,6 +34,27 @@
</PropertyGroup>
<ItemGroup>
<None Include="App.config" />
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
</ItemGroup>
<ItemGroup>
<Reference Include="Microsoft.Bcl.AsyncInterfaces, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.Bcl.AsyncInterfaces.8.0.0\lib\net462\Microsoft.Bcl.AsyncInterfaces.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Extensions.DependencyInjection, Version=8.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.Extensions.DependencyInjection.8.0.0\lib\net462\Microsoft.Extensions.DependencyInjection.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Extensions.DependencyInjection.Abstractions, Version=8.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.Extensions.DependencyInjection.Abstractions.8.0.0\lib\net462\Microsoft.Extensions.DependencyInjection.Abstractions.dll</HintPath>
</Reference>
<Reference Include="System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Runtime.CompilerServices.Unsafe.4.5.3\lib\net461\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
</Reference>
<Reference Include="System.Threading.Tasks.Extensions, Version=4.2.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll</HintPath>
</Reference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

View File

@ -0,0 +1,9 @@
namespace ComputerHardwareStore
{
internal static class Program
{
static void Main()
{
}
}
}

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Microsoft.Bcl.AsyncInterfaces" version="8.0.0" targetFramework="net48" />
<package id="Microsoft.Extensions.DependencyInjection" version="8.0.0" targetFramework="net48" />
<package id="Microsoft.Extensions.DependencyInjection.Abstractions" version="8.0.0" targetFramework="net48" />
<package id="System.Runtime.CompilerServices.Unsafe" version="4.5.3" targetFramework="net48" />
<package id="System.Threading.Tasks.Extensions" version="4.5.4" targetFramework="net48" />
</packages>

View File

@ -2,12 +2,12 @@
namespace ComputerHardwareStoreContracts.BindingModels
{
public class BuildBindingModel : IBindingModel
public class BuildBindingModel : IBuildModel
{
public int Id { get; set; }
public string BuildName { get; set; } = string.Empty;
public string Name { get; set; } = string.Empty;
public double Price { get; set; }
public int VendorId { get; set; }
public Dictionary<int, (IComponentModel, int)> BuildComponent { get; set; } = new();
public Dictionary<int, (IComponentModel, int)> BuildComponents { get; set; } = new();
}
}

View File

@ -7,5 +7,6 @@ namespace ComputerHardwareStoreContracts.BindingModels
public int Id { get; set; }
public string Name { get; set; } = string.Empty;
public double Cost { get; set; }
public int StoreKeeperId { get; set; }
}
}

View File

@ -1,4 +1,5 @@
using ComputerHardwareStoreDataModels.Models;
using ComputerHardwareStoreDataModels.Enums;
using ComputerHardwareStoreDataModels.Models;
namespace ComputerHardwareStoreContracts.BindingModels
{
@ -7,9 +8,10 @@ namespace ComputerHardwareStoreContracts.BindingModels
public int Id { get; set; }
public int CannedId { get; set; }
public int Count { get; set; }
public double Sum { get; set; }
public double Cost { get; set; }
public OrderStatus Status { get; set; } = OrderStatus.Неизвестен;
public DateTime DateCreate { get; set; } = DateTime.Now;
public DateTime? DateImplement { get; set; }
public Dictionary<int, (IProductModel, int)> OrderProduct { get; set; } = new();
}
}

View File

@ -5,7 +5,7 @@ namespace ComputerHardwareStoreContracts.BindingModels
public class ProductBindingModel : IProductModel
{
public int Id { get; set; }
public string ProductName { get; set; } = string.Empty;
public string Name { get; set; } = string.Empty;
public double Price { get; set; }
public Dictionary<int, (IComponentModel, int)> ProductComponents { get; set; } = new();
}

View File

@ -6,7 +6,7 @@ namespace ComputerHardwareStoreContracts.BindingModels
{
public int Id { get; set; }
public string Name { get; set; } = string.Empty;
public string Email { get; set; } = string.Empty;
public string Login { get; set; } = string.Empty;
public string Password { get; set; } = string.Empty;
}
}

View File

@ -6,7 +6,7 @@ namespace ComputerHardwareStoreContracts.BindingModels
{
public int Id { get; set; }
public string Name { get; set; } = string.Empty;
public string Email { get; set; } = string.Empty;
public string Login { get; set; } = string.Empty;
public string Password { get; set; } = string.Empty;
}
}

View File

@ -1,4 +1,4 @@
using HardwareStoreContracts.BindingModels;
using ComputerHardwareStoreContracts.BindingModels;
using ComputerHardwareStoreContracts.SearchModels;
using ComputerHardwareStoreContracts.ViewModels;

View File

@ -11,6 +11,6 @@ namespace ComputerHardwareStoreContracts.ViewModels
[DisplayName("Стоимость")]
public double Price { get; }
public int VendorId { get; }
public Dictionary<int, (IComponentModel, int)> BuildComponent { get; } = new();
public Dictionary<int, (IComponentModel, int)> BuildComponents { get; } = new();
}
}

View File

@ -12,6 +12,6 @@ namespace ComputerHardwareStoreContracts.ViewModels
public double Price { get; set; }
public Dictionary<int, (IComponentModel, int)> CannedComponents { get; set; } = new();
public Dictionary<int, (IComponentModel, int)> ProductComponent => throw new NotImplementedException();
public Dictionary<int, (IComponentModel, int)> ProductComponents => throw new NotImplementedException();
}
}

View File

@ -5,6 +5,6 @@
string Name { get; }
double Price { get; }
int VendorId { get; }
public Dictionary<int, (IComponentModel, int)> BuildComponent { get; }
public Dictionary<int, (IComponentModel, int)> BuildComponents { get; }
}
}

View File

@ -4,6 +4,6 @@
{
string Name { get; }
double Price { get; }
public Dictionary<int, (IComponentModel, int)> ProductComponent { get; }
public Dictionary<int, (IComponentModel, int)> ProductComponents { get; }
}
}