Setting up dependecy injection
This commit is contained in:
parent
736d689c6c
commit
6d1a904e1c
@ -35,7 +35,19 @@ namespace ConstructionCompanyView
|
||||
option.AddNLog("nlogConstruction.config");
|
||||
});
|
||||
services.AddTransient<IMaterialStorage, MaterialStorage>();
|
||||
services.AddTransient<IPositionStorage, PositionStorage>();
|
||||
services.AddTransient<IEmployeeStorage, EmployeeStorage>();
|
||||
services.AddTransient<IOrderStorage, OrderStorage>();
|
||||
services.AddTransient<IEmployeeOrderStorage, EmployeeOrderStorage>();
|
||||
services.AddTransient<IMaterialOrderStorage, MaterialOrderStorage>();
|
||||
|
||||
services.AddTransient<IMaterialLogic, MaterialLogic>();
|
||||
services.AddTransient<IPositionLogic, PositionLogic>();
|
||||
services.AddTransient<IEmployeeLogic, EmployeeLogic>();
|
||||
services.AddTransient<IOrderLogic, OrderLogic>();
|
||||
services.AddTransient<IEmployeeOrderLogic, EmployeeOrderLogic>();
|
||||
services.AddTransient<IMaterialOrderLogic, MaterialOrderLogic>();
|
||||
|
||||
services.AddTransient<FormMaterials>();
|
||||
services.AddTransient<FormMaterial>();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user