public void Delete(ICollection <T> entities) { using (DbConnection conn = _DataBase.CreateConnection()) { conn.ConnectionString = _strConn; SqlMap <T> .Delete(entities, conn, _DataBase); } }
public void Delete(T entity) { using (DbConnection conn = _DataBase.CreateConnection()) { conn.ConnectionString = _strConn; SqlMap <T> .Delete(entity, conn, _DataBase); } }
public bool DeleteUnKownJG_Deposit(UnknowBill ub) { try { int result = SqlMap.Delete("DeleteUnKownJG_Deposit", ub); return(result > 0); } catch (Exception ex) { throw ex; } }
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); }
/// <summary> /// 2013-07-26 /// 删除班级信息 /// </summary> /// <param name="calslesid">班级编号</param> public void DeleteClasses(int calslesid) { SqlMap.Delete("DeleteClasses", calslesid); }
public void Delete(Person person) { SqlMap.Delete("DeletePerson", person); }