Пример #1
0
 public void Delete(ICollection <T> entities)
 {
     using (DbConnection conn = _DataBase.CreateConnection())
     {
         conn.ConnectionString = _strConn;
         SqlMap <T> .Delete(entities, conn, _DataBase);
     }
 }
Пример #2
0
 public void Delete(T entity)
 {
     using (DbConnection conn = _DataBase.CreateConnection())
     {
         conn.ConnectionString = _strConn;
         SqlMap <T> .Delete(entity, conn, _DataBase);
     }
 }
Пример #3
0
 public bool DeleteUnKownJG_Deposit(UnknowBill ub)
 {
     try
     {
         int result = SqlMap.Delete("DeleteUnKownJG_Deposit", ub);
         return(result > 0);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Пример #4
0
        public static bool DeleteMenuItem(MenuItem mi, out string e)
        {
            bool result = true;

            try
            {
                SqlMap.Delete("DeleteMenuItem", mi);
                e = null;
            }
            catch (Exception ex)
            {
                result = false;
                e      = ex.Message;
            }
            return(result);
        }
Пример #5
0
 /// <summary>
 /// 2013-07-26
 /// 删除班级信息
 /// </summary>
 /// <param name="calslesid">班级编号</param>
 public void DeleteClasses(int calslesid)
 {
     SqlMap.Delete("DeleteClasses", calslesid);
 }
Пример #6
0
 public void Delete(Person person)
 {
     SqlMap.Delete("DeletePerson", person);
 }