TESTFORSTORAGESEND
This commit is contained in:
parent
6da52a2500
commit
f6f89d9cfe
@ -34,7 +34,7 @@ namespace DatabaseImplement.Implements
|
||||
return new();
|
||||
}
|
||||
using var context = new FactoryGoWorkDatabase();
|
||||
return context.Productions.Include(x => x.Details).ThenInclude(x => x.Detail).Where(x => x.UserId == model.Id).Select(x => x.GetViewModel).ToList();
|
||||
return context.Productions.Include(x => x.Details).ThenInclude(x => x.Detail).Where(x => x.UserId == model.UserId).Select(x => x.GetViewModel).ToList();
|
||||
}
|
||||
|
||||
public List<ProductionViewModel> GetFullList()
|
||||
|
@ -12,14 +12,5 @@ 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})}
|
||||
}
|
||||
});
|
||||
MachineStorage machineStorage = new MachineStorage();
|
||||
GuarantorStorage guarantorStorage = new GuarantorStorage();
|
||||
|
Loading…
Reference in New Issue
Block a user