Active Query Builder 2 .NET Edition reference
BeginBuildSQLForNode Event
Example 



Fired when the SQL Builder starts build SQL text for a node.
Syntax
'Declaration
 
Public Event BeginBuildSQLForNode As BuildSQLForNodeEventHandler
'Usage
 
Dim instance As BaseSQLBuilder
Dim handler As BuildSQLForNodeEventHandler
 
AddHandler instance.BeginBuildSQLForNode, handler
public event BuildSQLForNodeEventHandler BeginBuildSQLForNode
public: __event BuildSQLForNodeEventHandler* BeginBuildSQLForNode
Remarks
Used to implement custom SQL formatting rules.
Example
Adds opening parentesis before each function in the SQL text.
private void plainTextSQLBuilder_BeginBuildSQLForNode(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