/// <summary>
        /// Default constructor
        /// </summary>
        /// <param name="container">Dependency injection container</param>
        public DatabaseCore(ContainerDI container)
        {
            databaseRepository = container.DatabaseRepository;
            databaseRepository.SetContext(container.DatabaseContext);

            container = null;
        }
示例#2
0
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="DI"></param>
 public DatabaseHub(ContainerDI DI)
 {
     DAL = Activator.CreateInstance(typeof(TDatabaseCore), new object[] { DI }) as TDatabaseCore;
 }