Exemplo n.º 1
0
            internal static void Analyze(Expression e, PathBox pb, DataServiceContext context)
            {
                ProjectionAnalyzer.NonEntityProjectionAnalyzer analyzer = new ProjectionAnalyzer.NonEntityProjectionAnalyzer(pb, e.Type, context);
                MemberInitExpression expression = e as MemberInitExpression;

                if (expression != null)
                {
                    foreach (MemberBinding binding in expression.Bindings)
                    {
                        MemberAssignment assignment = binding as MemberAssignment;
                        if (assignment != null)
                        {
                            analyzer.Visit(assignment.Expression);
                        }
                    }
                }
                else
                {
                    analyzer.Visit(e);
                }
            }
Exemplo n.º 2
0
 internal static void Analyze(Expression e, PathBox pb, DataServiceContext context)
 {
     ProjectionAnalyzer.NonEntityProjectionAnalyzer analyzer = new ProjectionAnalyzer.NonEntityProjectionAnalyzer(pb, e.Type, context);
     MemberInitExpression expression = e as MemberInitExpression;
     if (expression != null)
     {
         foreach (MemberBinding binding in expression.Bindings)
         {
             MemberAssignment assignment = binding as MemberAssignment;
             if (assignment != null)
             {
                 analyzer.Visit(assignment.Expression);
             }
         }
     }
     else
     {
         analyzer.Visit(e);
     }
 }