Sergey Kozyrev
6da52a2500
Люди бесятся с водки, люди бесятся с жиру Люди думают вечно одно Люди тычут в спину, их пальцы горят А в ботинки стекает дерьмо
25 lines
756 B
C#
25 lines
756 B
C#
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();
|
|
|
|
productionionStorage.Insert(new()
|
|
{
|
|
UserId = 1,
|
|
Name = "Test",
|
|
Cost = 1,
|
|
ProductionDetails = new()
|
|
{
|
|
{2, detailStorage.GetElement(new() { Id = 2,}) }, {3, detailStorage.GetElement(new() {Id = 3})}
|
|
}
|
|
}); |