Ejemplo n.º 1
0
 public static void CreateAndRegister(AstNode astNode, LoweringContext context)
 {
     var astDestination = astNode as AstDestinationNode;
     if (astDestination != null)
     {
         var oleDBDestination = new OleDBDestination(context, astNode) { _oleDBConnection = new OleDBConnection(astDestination.Table.Connection) };
         context.ParentObject.Children.Add(oleDBDestination._oleDBConnection);
         context.ParentObject.Children.Add(oleDBDestination);
     }
 }
Ejemplo n.º 2
0
        public static void CreateAndRegister(AstNode astNode, LoweringContext context)
        {
            var astDestination = astNode as AstDestinationNode;

            if (astDestination != null)
            {
                var oleDBDestination = new OleDBDestination(context, astNode)
                {
                    _oleDBConnection = new OleDBConnection(astDestination.Table.Connection)
                };
                context.ParentObject.Children.Add(oleDBDestination._oleDBConnection);
                context.ParentObject.Children.Add(oleDBDestination);
            }
        }