Setting up dependecy injection

This commit is contained in:
abazov73 2023-04-09 18:05:24 +04:00
parent 736d689c6c
commit 6d1a904e1c

View File

@ -35,7 +35,19 @@ namespace ConstructionCompanyView
option.AddNLog("nlogConstruction.config"); option.AddNLog("nlogConstruction.config");
}); });
services.AddTransient<IMaterialStorage, MaterialStorage>(); 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<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<FormMaterials>();
services.AddTransient<FormMaterial>(); services.AddTransient<FormMaterial>();
} }