Example #1
0
 public static void CreateAndRegister(AstNode astNode, LoweringContext context)
 {
     var astSlowlyChangingDimensionNode = astNode as AstSlowlyChangingDimensionNode;
     if (astSlowlyChangingDimensionNode != null)
     {
         var slowlyChangingDimension = new SlowlyChangingDimension(context, astNode) { _oleDBConnection = new OleDBConnection(astSlowlyChangingDimensionNode.Connection) };
         context.ParentObject.Children.Add(slowlyChangingDimension._oleDBConnection);
         context.ParentObject.Children.Add(slowlyChangingDimension);
     }
 }
Example #2
0
        public static void CreateAndRegister(AstNode astNode, LoweringContext context)
        {
            var astSlowlyChangingDimensionNode = astNode as AstSlowlyChangingDimensionNode;

            if (astSlowlyChangingDimensionNode != null)
            {
                var slowlyChangingDimension = new SlowlyChangingDimension(context, astNode)
                {
                    _oleDBConnection = new OleDBConnection(astSlowlyChangingDimensionNode.Connection)
                };
                context.ParentObject.Children.Add(slowlyChangingDimension._oleDBConnection);
                context.ParentObject.Children.Add(slowlyChangingDimension);
            }
        }