Export (0) Print
Expand All

ObjectQuery<T> Members

.NET Framework 3.5

Represents a typed query against an Entity Data Model (EDM) in a given object context.

The ObjectQuery<T> type exposes the following members.

  NameDescription
Public method ObjectQuery<T> Overloaded. Initializes a new instance of the ObjectQuery<T> class.
Top

  NameDescription
Public method Distinct Limits the query to unique results.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public method Except Limits the query results by excluding results based on the results of another object query.
Public method Execute Executes the object query with the specified merge option.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetResultType Returns information about the result type of the query. (Inherited from ObjectQuery.)
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Public method GroupBy Groups the query results by the specified criteria.
Public method Include Specifies the related objects to include in the query results.
Public method Intersect Limits the query results by including only the results that exist in another object query.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method OfType<TResultType> Limits the query to only results of a specific type.
Public method OrderBy Orders the query results by the specified criteria.
Public method Select Limits the query results to only the properties that are defined in the specified projection.
Public method SelectValue<TResultType> Limits the query results to only the property specified in the projection.
Public method Skip Orders the query results by the specified criteria and skips a specified number of results.
Public method Top Limits the query results to a specified number of items.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method ToTraceString Returns the commands to execute against the data source. (Inherited from ObjectQuery.)
Public method Union Combines the results of the query with the results of another object query, without any duplicates.
Public method UnionAll Combines the results of the query with the results of another object query, including all duplicates.
Public method Where Limits the query to results that match specified filtering criteria.
Top

  NameDescription
Public Extension Method Aggregate Overloaded. Applies an accumulator function over a sequence.
Public Extension Method All Overloaded.
Public Extension Method Any Overloaded. Determines whether any element of an IQueryable<T> sequence exists or satisfies a condition.
Public Extension Method AsEnumerable Returns the input typed as IEnumerable<T>. (Defined by Enumerable.)
Public Extension Method AsQueryable Overloaded. Converts an IEnumerable or generic IEnumerable<T> to an IQueryable or generic IQueryable<T>.
Public Extension Method Average Overloaded. Computes the average of a sequence of numeric values.
Public Extension Method Cast Overloaded.
Public Extension Method Concat Overloaded.
Public Extension Method Contains Overloaded. Determines whether an IQueryable<T> contains a specified element.
Public Extension Method Count Overloaded. Returns the number of elements in a sequence.
Public Extension Method DefaultIfEmpty Overloaded. Returns the elements in a sequence or a default valued singleton collection if the sequence is empty.
Public Extension Method Distinct Overloaded. Returns distinct elements from a sequence.
Public Extension Method ElementAt Overloaded.
Public Extension Method ElementAtOrDefault Overloaded.
Public Extension Method Except Overloaded. Produces the set difference of two sequences.
Public Extension Method First Overloaded. Returns the first element of a sequence.
Public Extension Method FirstOrDefault Overloaded. Returns the first element of a sequence, or a default value if no element is found.
Public Extension Method Intersect Overloaded. Produces the set intersection of two sequences.
Public Extension Method Last Overloaded. Returns the last element in a sequence.
Public Extension Method LastOrDefault Overloaded. Returns the last element of a sequence, or a default value if no element is found.
Public Extension Method LongCount Overloaded. Returns an Int64 that represents the number of elements in sequence.
Public Extension Method Max Overloaded. Returns the maximum value in a sequence.
Public Extension Method Min Overloaded. Returns the minimum value in a sequence.
Public Extension Method OfType Overloaded.
Public Extension Method Reverse Overloaded.
Public Extension Method SequenceEqual Overloaded. Determines whether two sequences are equal.
Public Extension Method Single Overloaded. Returns a single, specific element of a sequence.
Public Extension Method SingleOrDefault Overloaded. Returns a single, specific element of a sequence, or a default value if no such element is found.
Public Extension Method Skip Overloaded.
Public Extension Method SkipWhile Overloaded. Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements.
Public Extension Method Sum Overloaded. Computes the sum of a sequence of numeric values.
Public Extension Method Take Overloaded.
Public Extension Method TakeWhile Overloaded. Returns elements from a sequence as long as a specified condition is true, and then skips the remaining elements.
Public Extension Method ToArray Creates an array from a IEnumerable<T>. (Defined by Enumerable.)
Public Extension Method ToList Creates a List<T> from an IEnumerable<T>. (Defined by Enumerable.)
Public Extension Method Union Overloaded. Produces the set union of two sequences.
Public Extension Method Where Overloaded. Filters a sequence of values based on a predicate.
Top

  NameDescription
Public property CommandText Returns the command text for the query. (Inherited from ObjectQuery.)
Public property Context Gets the object context associated with this object query. (Inherited from ObjectQuery.)
Public property EnablePlanCaching Gets or sets a value that indicates whether the query plan should be cached. (Inherited from ObjectQuery.)
Public property MergeOption Gets or sets how objects returned from a query are added to the object context. (Inherited from ObjectQuery.)
Public property Name Gets or sets the name of this object query.
Public property Parameters Gets the parameter collection for this object query. (Inherited from ObjectQuery.)
Top

  NameDescription
Explicit interface implemetation Private property IListSource.ContainsListCollection Gets a value that indicates whether the collection returned by the query contains collection objects. (Inherited from ObjectQuery.)
Explicit interface implemetation Private property IQueryable.ElementType Gets the result element type for this query instance. (Inherited from ObjectQuery.)
Explicit interface implemetation Private property IQueryable.Expression Gets the expression describing this query. (Inherited from ObjectQuery.)
Explicit interface implemetation Private method IEnumerable.GetEnumerator Returns an enumerator that iterates through a collection. (Inherited from ObjectQuery.)
Explicit interface implemetation Private method IEnumerable<T>.GetEnumerator Returns an enumerator that iterates through the results of the query.
Explicit interface implemetation Private method IListSource.GetList Returns the collection as an IList used for data binding. (Inherited from ObjectQuery.)
Explicit interface implemetation Private property IQueryable.Provider Gets the LINQ IQueryProvider associated with this query instance. (Inherited from ObjectQuery.)
Top

Community Additions

ADD
Show:
© 2014 Microsoft