1 type derived from ObjectQuery
System.Data.Entity (1)
System\Data\Objects\ObjectSet.cs (1)
37public class ObjectSet<TEntity> : ObjectQuery<TEntity>, IObjectSet<TEntity>
18 instantiations of ObjectQuery
System.Data.Entity (18)
System\Data\Objects\DataClasses\RelatedEnd.cs (1)
535ObjectQuery<TEntity> query = new ObjectQuery<TEntity>(_sourceQuery, _context, mergeOption);
System\Data\Objects\ELinq\ObjectQueryProvider.cs (1)
150return new ObjectQuery<S>(queryState);
System\Data\Objects\Internal\ObjectQueryState.cs (1)
333return new ObjectQuery<TResultType>(queryState);
System\Data\Objects\ObjectContext.cs (1)
1641ObjectQuery<T> query = new ObjectQuery<T>(queryString, this, MergeOption.AppendOnly);
System\Data\Objects\ObjectQuery_EntitySqlExtensions.cs (13)
255return new ObjectQuery<T>(EntitySqlQueryBuilder.Distinct(this.QueryState)); 280return new ObjectQuery<T>(EntitySqlQueryBuilder.Except(this.QueryState, query.QueryState)); 315return new ObjectQuery<DbDataRecord>(EntitySqlQueryBuilder.GroupBy(this.QueryState, this.Name, keys, projection, parameters)); 339return new ObjectQuery<T>(EntitySqlQueryBuilder.Intersect(this.QueryState, query.QueryState)); 375return new ObjectQuery<TResultType>(EntitySqlQueryBuilder.OfType(this.QueryState, ofType, clrOfType)); 410return new ObjectQuery<T>(EntitySqlQueryBuilder.OrderBy(this.QueryState, this.Name, keys, parameters)); 442return new ObjectQuery<DbDataRecord>(EntitySqlQueryBuilder.Select(this.QueryState, this.Name, projection, parameters)); 477return new ObjectQuery<TResultType>(EntitySqlQueryBuilder.SelectValue(this.QueryState, this.Name, projection, parameters, typeof(TResultType))); 520return new ObjectQuery<T>(EntitySqlQueryBuilder.Skip(this.QueryState, this.Name, keys, count, parameters)); 552return new ObjectQuery<T>(EntitySqlQueryBuilder.Top(this.QueryState, this.Name, count, parameters)); 577return new ObjectQuery<T>(EntitySqlQueryBuilder.Union(this.QueryState, query.QueryState)); 598return new ObjectQuery<T>(EntitySqlQueryBuilder.UnionAll(this.QueryState, query.QueryState)); 630return new ObjectQuery<T>(EntitySqlQueryBuilder.Where(this.QueryState, this.Name, predicate, parameters));
System\Data\Objects\ObjectQuery_TResultType.cs (1)
61return new ObjectQuery<T>(this.QueryState.Include(this, path));
150 references to ObjectQuery
System.Data.Entity (119)
System\Data\Objects\CompiledQuery.cs (1)
597!resultType.IsAssignableFrom(typeof(ObjectQuery<>).MakeGenericType(elementType)));
System\Data\Objects\DataClasses\EntityCollection.cs (2)
289ObjectQuery<TEntity> sourceQuery = ValidateLoad<TEntity>(mergeOption, "EntityCollection", out hasResults); 806public ObjectQuery<TEntity> CreateSourceQuery()
System\Data\Objects\DataClasses\EntityReference_TResultType.cs (2)
171ObjectQuery<TEntity> sourceQuery = ValidateLoad<TEntity>(mergeOption, "EntityReference", out hasResults); 674public ObjectQuery<TEntity> CreateSourceQuery()
System\Data\Objects\DataClasses\RelatedEnd.cs (5)
327internal ObjectQuery<TEntity> CreateSourceQuery<TEntity>(MergeOption mergeOption, out bool hasResults) 535ObjectQuery<TEntity> query = new ObjectQuery<TEntity>(_sourceQuery, _context, mergeOption); 666internal ObjectQuery<TEntity> ValidateLoad<TEntity>(MergeOption mergeOption, string relatedEndName, out bool hasResults) 668ObjectQuery<TEntity> sourceQuery = CreateSourceQuery<TEntity>(mergeOption, out hasResults); 2476internal static IEnumerable<U> GetResults<U>(ObjectQuery<U> query)
System\Data\Objects\ELinq\ELinqQueryState.cs (1)
240internal override ObjectQueryState Include<TElementType>(ObjectQuery<TElementType> sourceQuery, string includePath)
System\Data\Objects\ELinq\ExpressionConverter.cs (1)
529(fromClrType.GetGenericTypeDefinition() == typeof(ObjectQuery<>) || fromClrType.GetGenericTypeDefinition() == typeof(IOrderedQueryable<>)) &&
System\Data\Objects\ELinq\MethodCallTranslator.cs (2)
339typeof(ObjectQuery<>) == declaringType.GetGenericTypeDefinition()); 351Debug.Assert(convertExpression.Type.IsGenericType && typeof(ObjectQuery<>) == convertExpression.Type.GetGenericTypeDefinition(), "MethodCall with internal MergeAs/IncludeSpan method was not constructed by LINQ to Entities?");
System\Data\Objects\ELinq\ObjectQueryProvider.cs (3)
71ObjectQuery<S> query = CreateQuery<S>(expression); 88ObjectQuery<S> query = CreateQuery<S>(expression); 139private ObjectQuery<S> CreateQuery<S>(Expression expression)
System\Data\Objects\EntityFunctions.cs (64)
37ObjectQuery<System.Decimal> objectQuerySource = collection as ObjectQuery<System.Decimal>; 51ObjectQuery<System.Decimal?> objectQuerySource = collection as ObjectQuery<System.Decimal?>; 65ObjectQuery<System.Double> objectQuerySource = collection as ObjectQuery<System.Double>; 79ObjectQuery<System.Double?> objectQuerySource = collection as ObjectQuery<System.Double?>; 93ObjectQuery<System.Int32> objectQuerySource = collection as ObjectQuery<System.Int32>; 107ObjectQuery<System.Int32?> objectQuerySource = collection as ObjectQuery<System.Int32?>; 121ObjectQuery<System.Int64> objectQuerySource = collection as ObjectQuery<System.Int64>; 135ObjectQuery<System.Int64?> objectQuerySource = collection as ObjectQuery<System.Int64?>; 149ObjectQuery<System.Decimal> objectQuerySource = collection as ObjectQuery<System.Decimal>; 163ObjectQuery<System.Decimal?> objectQuerySource = collection as ObjectQuery<System.Decimal?>; 177ObjectQuery<System.Double> objectQuerySource = collection as ObjectQuery<System.Double>; 191ObjectQuery<System.Double?> objectQuerySource = collection as ObjectQuery<System.Double?>; 205ObjectQuery<System.Int32> objectQuerySource = collection as ObjectQuery<System.Int32>; 219ObjectQuery<System.Int32?> objectQuerySource = collection as ObjectQuery<System.Int32?>; 233ObjectQuery<System.Int64> objectQuerySource = collection as ObjectQuery<System.Int64>; 247ObjectQuery<System.Int64?> objectQuerySource = collection as ObjectQuery<System.Int64?>; 261ObjectQuery<System.Decimal> objectQuerySource = collection as ObjectQuery<System.Decimal>; 275ObjectQuery<System.Decimal?> objectQuerySource = collection as ObjectQuery<System.Decimal?>; 289ObjectQuery<System.Double> objectQuerySource = collection as ObjectQuery<System.Double>; 303ObjectQuery<System.Double?> objectQuerySource = collection as ObjectQuery<System.Double?>; 317ObjectQuery<System.Int32> objectQuerySource = collection as ObjectQuery<System.Int32>; 331ObjectQuery<System.Int32?> objectQuerySource = collection as ObjectQuery<System.Int32?>; 345ObjectQuery<System.Int64> objectQuerySource = collection as ObjectQuery<System.Int64>; 359ObjectQuery<System.Int64?> objectQuerySource = collection as ObjectQuery<System.Int64?>; 373ObjectQuery<System.Decimal> objectQuerySource = collection as ObjectQuery<System.Decimal>; 387ObjectQuery<System.Decimal?> objectQuerySource = collection as ObjectQuery<System.Decimal?>; 401ObjectQuery<System.Double> objectQuerySource = collection as ObjectQuery<System.Double>; 415ObjectQuery<System.Double?> objectQuerySource = collection as ObjectQuery<System.Double?>; 429ObjectQuery<System.Int32> objectQuerySource = collection as ObjectQuery<System.Int32>; 443ObjectQuery<System.Int32?> objectQuerySource = collection as ObjectQuery<System.Int32?>; 457ObjectQuery<System.Int64> objectQuerySource = collection as ObjectQuery<System.Int64>; 471ObjectQuery<System.Int64?> objectQuerySource = collection as ObjectQuery<System.Int64?>;
System\Data\Objects\Internal\EntitySqlQueryState.cs (1)
131internal override ObjectQueryState Include<TElementType>(ObjectQuery<TElementType> sourceQuery, string includePath)
System\Data\Objects\Internal\ObjectQueryState.cs (4)
27/// An instance of a class derived from ObjectQueryState is used to model every instance of <see cref="ObjectQuery&lt;TResultType&gt;"/>. 259internal abstract ObjectQueryState Include<TElementType>(ObjectQuery<TElementType> sourceQuery, string includePath); 310/// <returns>A new <see cref="ObjectQuery&lt;TResultType&gt;"/> - typed as <see cref="ObjectQuery"/></returns> 328public static ObjectQuery<TResultType> CreateObjectQuery<TResultType>(ObjectQueryState queryState)
System\Data\Objects\ObjectContext.cs (2)
1628public ObjectQuery<T> CreateQuery<T>(string queryString, params ObjectParameter[] parameters) 1641ObjectQuery<T> query = new ObjectQuery<T>(queryString, this, MergeOption.AppendOnly);
System\Data\Objects\ObjectQuery_EntitySqlExtensions.cs (23)
67private string _name = ObjectQuery<T>.DefaultName; 249public ObjectQuery<T> Distinct () 253return (ObjectQuery<T>)Queryable.Distinct<T>(this); 272public ObjectQuery<T> Except(ObjectQuery<T> query) 278return (ObjectQuery<T>)Queryable.Except(this, query); 299public ObjectQuery<DbDataRecord> GroupBy(string keys, string projection, params ObjectParameter[] parameters) 331public ObjectQuery<T> Intersect (ObjectQuery<T> query) 337return (ObjectQuery<T>)Queryable.Intersect(this, query); 352public ObjectQuery<TResultType> OfType<TResultType>() 356return (ObjectQuery<TResultType>)Queryable.OfType<TResultType>(this); 400public ObjectQuery<T> OrderBy (string keys, params ObjectParameter[] parameters) 432public ObjectQuery<DbDataRecord> Select (string projection, params ObjectParameter[] parameters) 464public ObjectQuery<TResultType> SelectValue<TResultType> (string projection, params ObjectParameter[] parameters) 504public ObjectQuery<T> Skip (string keys, string count, params ObjectParameter[] parameters) 543public ObjectQuery<T> Top (string count, params ObjectParameter[] parameters) 569public ObjectQuery<T> Union (ObjectQuery<T> query) 575return (ObjectQuery<T>)Queryable.Union(this, query); 594public ObjectQuery<T> UnionAll (ObjectQuery<T> query) 620public ObjectQuery<T> Where (string predicate, params ObjectParameter[] parameters)
System\Data\Objects\ObjectQuery_TResultType.cs (4)
58public ObjectQuery<T> Include(string path) 130Type objectQueryType = typeof(ObjectQuery<T>); 151internal ObjectQuery<T> MergeAs(MergeOption mergeOption) 157internal ObjectQuery<T> IncludeSpan(Span span)
System\Data\Objects\SqlClient\SqlFunctions.cs (4)
37ObjectQuery<System.Int32> objectQuerySource = arg as ObjectQuery<System.Int32>; 51ObjectQuery<System.Int32?> objectQuerySource = arg as ObjectQuery<System.Int32?>;
System.Data.Services (3)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (3)
1179private static ObjectQuery<T> Include<T>(IQueryable query, string dottedPath) 1184ObjectQuery<T> typedQuery = (ObjectQuery<T>)query;
System.Web.Entity (28)
System\Data\WebControls\EntityDataSourceQueryBuilder.cs (24)
74internal IEnumerable Execute(ObjectQuery<T> queryT) 79internal ObjectQuery<T> BuildBasicQuery(ObjectContext context, bool computeCount) 81ObjectQuery<T> queryT = QueryBuilderUtils.ConstructQuery<T>(context, _entitySetQueryExpression, _commandText, _commandParameters); 88internal ObjectQuery<T> CompleteBuild(ObjectQuery<T> queryT, ObjectContext context, bool computeCount, bool wasExtended) 101private ObjectQuery<T> ApplyWhere(ObjectQuery<T> queryT) 110protected abstract ObjectQuery<T> ApplySelect(ObjectQuery<T> queryT); 112internal ObjectQuery<T> ApplyOrderBy(ObjectQuery<T> queryT) 122private ObjectQuery<T> ApplyOrderByAndPaging(ObjectQuery<T> queryT) 150private ObjectQuery<T> ApplyQueryableOrderByAndPaging(ObjectQuery<T> queryT) 152queryT = _orderByBuilder.BuildQueryableOrderBy(queryT) as ObjectQuery<T>; 156queryT = queryT.Skip(_arguments.StartRowIndex).Take(_arguments.MaximumRows) as ObjectQuery<T>; 162private ObjectQuery<T> ApplyIncludePaths(ObjectQuery<T> objectQuery) 216protected override ObjectQuery<T> ApplySelect(ObjectQuery<T> queryT) 262protected override ObjectQuery<DbDataRecord> ApplySelect(ObjectQuery<DbDataRecord> queryT) 282internal static ObjectQuery<T> ConstructQuery<T>(ObjectContext context,
System\Data\WebControls\EntityDataSourceView.cs (4)
267ObjectQuery<T> query = queryBuilder.BuildBasicQuery(Context, arguments.RetrieveTotalRowCount); 268ObjectQuery<T> sortedQuery = queryBuilder.ApplyOrderBy(query); 328query = queryReturned as ObjectQuery<T>; 334private IEnumerable ContinueSelectTyped<T>(DataSourceSelectArguments arguments, EntityDataSourceQueryBuilder<T> queryBuilder, ObjectQuery<T> queryT, bool wasQueryModified)