Exemple #1
0
        public void AddDAL(ObjectDAL odal)
        {
            string key = odal.GetType().Name;

            if (!LoadedDals.ContainsKey(key))
            {
                DALHandle dh = new DALHandle();
                dh.LastAccess = DateTime.Now;
                dh.Name       = key;
                dh.ODAL       = odal;
                LoadedDals.Add(dh.Name, dh);
            }
            else
            {
                LoadedDals[key].ODAL = odal;
            }
        }
 public ObjectService()
 {
     _dal    = new ObjectDAL();
     _ddlDal = new DropDownListDAL();
 }