protected void OnEmptyTable() { TableNode node = (TableNode)CurrentNode.DataItem; if (Services.MessageService.AskQuestion( GettextCatalog.GetString("Are you sure you want to empty table '{0}'", node.Table.Name), GettextCatalog.GetString("Empty Table") )) { IdentifierExpression tableId = new IdentifierExpression(node.Table.Name); DeleteStatement del = new DeleteStatement(new FromTableClause(tableId)); IPooledDbConnection conn = node.ConnectionContext.ConnectionPool.Request(); IDbCommand command = conn.CreateCommand(del); conn.ExecuteNonQueryAsync(command, new ExecuteCallback <int> (OnEmptyTableCallback), null); } }