public static void CreateAndRegister(AstNode astNode, LoweringContext context) { var astOleDBCommandNode = astNode as AstOleDBCommandNode; if (astOleDBCommandNode != null) { var oleDBCommand = new OleDBCommand(context, astNode) { _oleDBConnection = new OleDBConnection(astOleDBCommandNode.Connection) }; context.ParentObject.Children.Add(oleDBCommand._oleDBConnection); context.ParentObject.Children.Add(oleDBCommand); } }