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