/// <summary>
 /// Business layer constructor
 /// </summary>
 /// <param name="pDALayerType">Data type of the DAL DBFactory. e.g Type.GetType("ML.AccessControl.DAL.SQLite.DBFactory, ML.AccessControl.DAL.SQLite", true)</param>
 /// <param name="pConnectionString">Connection string to the database</param>
 /// <param name="pCacheDALAssembly">If pCacheDALAssembly is true then subsequent instantiation of the BusManager class will reuse the same DAL assembly. Always set it true if you are not intending to switch the data provider at runtime.</param>
 public BusManager(Type pDALayerType, string pConnectionString, bool pCacheDALAssembly)
 {
     _bCacheDALAssembly = pCacheDALAssembly;
     if (_bCacheDALAssembly)
     {
         if (_dbStaticFactory == null)
             _dbStaticFactory = (AbsFactory)Activator.CreateInstance(pDALayerType);
         _dbManager = _dbStaticFactory.CreateDBManager(pConnectionString);
     }
     else
     {
         _dbFactory = (AbsFactory)Activator.CreateInstance(pDALayerType);
         _dbManager = _dbFactory.CreateDBManager(pConnectionString);
     }
 }
 public _AbsDBBase(AbsManager pDBManager)
 {
     _dbManager = pDBManager;
 }
예제 #3
0
 internal BusUsers(BusManager pBusManager, AbsManager pDBManager) : base(pBusManager, pDBManager) { }
 internal BusSessions(BusManager pBusManager, AbsManager pDBManager) : base(pBusManager, pDBManager) { }
예제 #5
0
 internal BusRoles(BusManager pBusManager, AbsManager pDBManager) : base(pBusManager, pDBManager) { }
 public AbsDBRoles(AbsManager pDBManager) : base(pDBManager)
 {
 }
 internal BusRegistration(BusManager pBusManager, AbsManager pDBManager) : base(pBusManager, pDBManager) { }
 protected AbsBusBase(BusManager pBusManager, AbsManager pDBManager)
 {
     _dbManager = pDBManager;
     _busManager = pBusManager;
 }
 public AbsDBUsers(AbsManager pDBManager) : base(pDBManager)
 {
 }
 public AbsDBRoles(AbsManager pDBManager) : base(pDBManager) { }
 public AbsDBSessions(AbsManager pDBManager) : base(pDBManager) { }
예제 #12
0
 public AbsDBSessions(AbsManager pDBManager) : base(pDBManager)
 {
 }
 public AbsDBUsers(AbsManager pDBManager) : base(pDBManager) { }