/// <summary> /// Default constructor /// </summary> /// <param name="container">Dependency injection container</param> public DatabaseCore(ContainerDI container) { databaseRepository = container.DatabaseRepository; databaseRepository.SetContext(container.DatabaseContext); container = null; }
/// <summary> /// Default constructor /// </summary> /// <param name="DI"></param> public DatabaseHub(ContainerDI DI) { DAL = Activator.CreateInstance(typeof(TDatabaseCore), new object[] { DI }) as TDatabaseCore; }