예제 #1
0
 public Users(GenericDatabase db)
 {
     this.db = db;
 }
예제 #2
0
 public Enterprises(GenericDatabase db)
 {
     this.db = db;
 }
예제 #3
0
 ///////////////////////////////////////////////////////////////////////////////////	
 private void Initialize(string sid)
 {
     try
     {
         db = new GenericDatabase();
         db.Connect();
         users       = new Users(db);
         groups      = new Groups(db);
         enterprises = new Enterprises(db);
         ServicesTools.Connect2ObjectsServer(ref concurrencyObj,
                              							ref historyObj, ref sessionsObj);
     }
     catch (Exception e)
     {
         Exception wrappedEx = new Exception(
             ErrorManager.AddLayer(e, RunningClass.GetName(this), RunningClass.GetMethod()));
         throw wrappedEx;
     }
 }