Пример #1
0
 public bool Delete(EntityHandler.SubObjects obj)
 {
     bool Status = false;
     try
     {
         Status = new DataAccessHandler.SubObjects().Delete(obj);
     }
     catch (Exception ex)
     { }
     return Status;
 }
Пример #2
0
        public bool Delete(EntityHandler.SubObjects obj)
        {
            bool Status = false;

            try
            {
                Status = new DataAccessHandler.SubObjects().Delete(obj);
            }
            catch (Exception ex)
            { }
            return(Status);
        }
Пример #3
0
 public List<EntityHandler.SubObjects> SelectAll(EntityHandler.SubObjects obj)
 {
     List<EntityHandler.SubObjects> listobj = new List<EntityHandler.SubObjects>();
     try
     {
         DataTable dt = new DataAccessHandler.SubObjects().SelectAll(obj);
         for (int i = 0; i < dt.Rows.Count; i++)
         {
             listobj.Add(ConvertToObject(dt.Rows[i]));
         }
     }
     catch (Exception ex)
     { }
     return listobj;
 }
Пример #4
0
        public List <EntityHandler.SubObjects> SelectAll(EntityHandler.SubObjects obj)
        {
            List <EntityHandler.SubObjects> listobj = new List <EntityHandler.SubObjects>();

            try
            {
                DataTable dt = new DataAccessHandler.SubObjects().SelectAll(obj);
                for (int i = 0; i < dt.Rows.Count; i++)
                {
                    listobj.Add(ConvertToObject(dt.Rows[i]));
                }
            }
            catch (Exception ex)
            { }
            return(listobj);
        }