internal override ObjectQueryState Include <TElementType>(ObjectQuery <TElementType> sourceQuery, string includePath) { ObjectQueryState retState = new EntitySqlQueryState( ElementType, _queryText, _queryExpression, _allowsLimit, ObjectContext, ObjectParameterCollection.DeepCopy(Parameters), Span.IncludeIn(Span, includePath)); ApplySettingsTo(retState); return(retState); }
internal override ObjectQueryState Include <TElementType>( ObjectQuery <TElementType> sourceQuery, string includePath) { ObjectQueryState other = (ObjectQueryState) new EntitySqlQueryState(this.ElementType, this._queryText, this._queryExpression, this._allowsLimit, this.ObjectContext, ObjectParameterCollection.DeepCopy(this.Parameters), Span.IncludeIn(this.Span, includePath), (ObjectQueryExecutionPlanFactory)null); this.ApplySettingsTo(other); return(other); }