30 lines
884 B
C#
Raw Normal View History

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();
ProductionStorage productionionStorage = new ProductionStorage();
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 }) }
}
});