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 17:50:38 +04:00
|
|
|
|
productionionStorage.Insert(new()
|
|
|
|
|
{
|
|
|
|
|
UserId = 1,
|
|
|
|
|
Name = "Test",
|
|
|
|
|
Cost = 1,
|
|
|
|
|
ProductionDetails = new()
|
|
|
|
|
{
|
|
|
|
|
{2, detailStorage.GetElement(new() { Id = 2,}) }, {3, detailStorage.GetElement(new() {Id = 3})}
|
|
|
|
|
}
|
|
|
|
|
});
|