Exemple #1
0
 public Users(GenericDatabase db)
 {
     this.db = db;
 }
 public Enterprises(GenericDatabase db)
 {
     this.db = db;
 }
 ///////////////////////////////////////////////////////////////////////////////////	
 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;
     }
 }