'Declaration Public Event ExecSQL As ExecSQLEventHandler
'Usage Dim instance As EventMetadataProvider Dim handler As ExecSQLEventHandler AddHandler instance.ExecSQL, handler
public event ExecSQLEventHandler ExecSQL
public: __event ExecSQLEventHandler* ExecSQL
private void EventMetadataProvider_ExecSQL(BaseMetadataProvider metadataProvider, string sql, bool schemaOnly, out IDataReader dataReader) { dataReader = null; if (dbConnection != null) { IDbCommand command = dbConnection.CreateCommand(); command.CommandText = sql; dataReader = command.ExecuteReader(); } }