/// <summary> /// 删除数据 /// </summary> /// <param name="sqlCriteria">条件集</param> public void Delete <T>(SqlCriteria sqlCriteria) where T : class { string tableName = OrmUtil.GetTableName <T>(); DeleteBeeCommand deleteBeeCommand = new DeleteBeeCommand(this, tableName, sqlCriteria); deleteBeeCommand.Excute <int>(); }
/// <summary> /// 删除数据 /// </summary> /// <param name="tableName">表名</param> /// <param name="sqlCriteria">条件集</param> public void Delete(string tableName, SqlCriteria sqlCriteria) { ThrowExceptionUtil.ArgumentNotNullOrEmpty(tableName, "tableName"); DeleteBeeCommand deleteBeeCommand = new DeleteBeeCommand(this, tableName, sqlCriteria); deleteBeeCommand.Excute <int>(); }