示例#1
0
 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);
     }
 }
示例#2
0
        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);
            }
        }