2024-04-30 17:03:49 +04:00
|
|
|
|
using DatabaseImplement;
|
|
|
|
|
using DatabaseImplement.Implements;
|
|
|
|
|
using Contracts.BindingModels;
|
|
|
|
|
using Contracts.BusinessLogicsContracts;
|
|
|
|
|
using Contracts.SearchModels;
|
|
|
|
|
using Contracts.ViewModels;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Query.Internal;
|
|
|
|
|
using DatabaseImplement.Models;
|
|
|
|
|
using DataModels.Models;
|
|
|
|
|
|
|
|
|
|
DetailStorage detailStorage = new DetailStorage();
|
|
|
|
|
ImplementerStorage implementationStorage = new ImplementerStorage();
|
2024-04-30 17:50:38 +04:00
|
|
|
|
ProductionStorage productionionStorage = new ProductionStorage();
|
2024-04-30 17:03:49 +04:00
|
|
|
|
ProductStorage productStorage = new ProductStorage();
|
2024-04-30 18:08:28 +04:00
|
|
|
|
MachineStorage machineStorage = new MachineStorage();
|
|
|
|
|
GuarantorStorage guarantorStorage = new GuarantorStorage();
|
2024-04-30 23:02:06 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
productionionStorage.Update(new()
|
|
|
|
|
{
|
|
|
|
|
Id = 4,
|
|
|
|
|
Name = "name",
|
|
|
|
|
Cost = 1,
|
|
|
|
|
UserId = 1,
|
|
|
|
|
ProductionDetails = new()
|
|
|
|
|
{
|
|
|
|
|
{1, detailStorage.GetElement(new() { Id = 1 }) },
|
|
|
|
|
{3, detailStorage.GetElement(new() { Id = 3 }) }
|
|
|
|
|
}
|
|
|
|
|
});
|