internal override ObjectQueryState Include <TElementType>(
            ObjectQuery <TElementType> sourceQuery,
            string includePath)
        {
            MethodInfo       includeMethod = ELinqQueryState.GetIncludeMethod <TElementType>(sourceQuery);
            ObjectQueryState other         = (ObjectQueryState) new ELinqQueryState(this.ElementType, this.ObjectContext, (Expression)Expression.Call((Expression)Expression.Constant((object)sourceQuery), includeMethod, (Expression)Expression.Constant((object)includePath, typeof(string))), (ObjectQueryExecutionPlanFactory)null);

            this.ApplySettingsTo(other);
            return(other);
        }
예제 #2
0
 public void GetIncludeMethod_returns_query_Include_MethodInfo()
 {
     Assert.NotNull(ELinqQueryState.GetIncludeMethod(new ObjectQuery <int>()));
 }