Esempio n. 1
0
 public static void CreateAndRegister(AstNode astNode, LoweringContext context)
 {
     var astTermLookupNode = astNode as AstTermLookupNode;
     if (astTermLookupNode != null)
     {
         var termLookup = new TermLookup(context, astNode) { _oleDBConnection = new OleDBConnection(astTermLookupNode.Connection) };
         context.ParentObject.Children.Add(termLookup._oleDBConnection);
         context.ParentObject.Children.Add(termLookup);
     }
 }
Esempio n. 2
0
        public static void CreateAndRegister(AstNode astNode, LoweringContext context)
        {
            var astTermLookupNode = astNode as AstTermLookupNode;

            if (astTermLookupNode != null)
            {
                var termLookup = new TermLookup(context, astNode)
                {
                    _oleDBConnection = new OleDBConnection(astTermLookupNode.Connection)
                };
                context.ParentObject.Children.Add(termLookup._oleDBConnection);
                context.ParentObject.Children.Add(termLookup);
            }
        }