using BusinessLogic.Entities; using BusinessLogic.Interfaces.Persistence; using BusinessLogic.Interfaces.Repositories; using DataAccess.Classes; using DataAccess.Interfaces; using DataAccess.Persistence; using DataAccess.Repositories; using Unity; using Unity.Lifetime; namespace DataAccess { public class UnityConfig { public static void RegisterComponents(IUnityContainer container) { container .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType, Repository>() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType(typeof(IRepository<>), typeof(Repository<>)) .RegisterType() ; container .RegisterType(new PerResolveLifetimeManager()); } } }