Active Query Builder 2 .NET Edition reference
EndBuildSQLForNode Event
Example 



Fired when the SQL Builder ends build SQL text for a node.
Syntax
'Declaration
 
Public Event EndBuildSQLForNode As BuildSQLForNodeEventHandler
'Usage
 
Dim instance As BaseSQLBuilder
Dim handler As BuildSQLForNodeEventHandler
 
AddHandler instance.EndBuildSQLForNode, handler
public event BuildSQLForNodeEventHandler EndBuildSQLForNode
public: __event BuildSQLForNodeEventHandler* EndBuildSQLForNode
Remarks
Used to implement custom SQL formatting rules.
Example
Adds closing parenthesis after each function in the SQL text.
private void plainTextSQLBuilder_EndBuildSQLForNode(object sender, AstNode node)
{
    if (node is SQLExpressionFunction || node is SQLExpressionAggregate)
    {
        plainTextSQLBuilder.SQLBuilder.WriteSymbol(")");
    }
}
See Also

Reference

BaseSQLBuilder Class
BaseSQLBuilder Members

 

 


© Copyright 2005-2012 ActiveDBSoft. All rights reserved.

Send Feedback