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); } }
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); } }