/// <summary> /// 执行没有返回值的查询实例对象。 /// </summary> /// <param name="commandText">SQL字符串。</param> /// <param name="parameters">参数实例对象。</param> /// <param name="commandType">命令类型。</param> /// <returns>返回是否有执行影响到数据行。</returns> public bool ExecuteNonQuery(string commandText, object parameters = null, CommandType commandType = CommandType.Text) => _executor.ExecuteNonQuery(commandText, parameters, commandType);
public async Task ClearAll() { await _executor.ExecuteNonQuery("sp_delete_all_expenses"); }