ObjectQuery Classe
Definição
Implementa a funcionalidade comum para consultas em um modelo conceitual usando o LINQ to Entities e ObjectQuery<T>.Implements common functionality for queries against a conceptual model using both LINQ to Entities and ObjectQuery<T>.
public ref class ObjectQuery abstract : System::Collections::IEnumerable, System::ComponentModel::IListSource, System::Linq::IOrderedQueryable
public abstract class ObjectQuery : System.Collections.IEnumerable, System.ComponentModel.IListSource, System.Linq.IOrderedQueryable
type ObjectQuery = class
interface IOrderedQueryable
interface IQueryable
interface IEnumerable
interface IListSource
type ObjectQuery = class
interface IEnumerable
interface IQueryable
interface IOrderedQueryable
interface IListSource
Public MustInherit Class ObjectQuery
Implements IEnumerable, IListSource, IOrderedQueryable
- Herança
-
ObjectQuery
- Derivado
- Implementações
Comentários
ObjectQuery é a classe base para consultas em um modelo conceitual.ObjectQuery is the base class for queries against a conceptual model. ObjectQuery é fornecido para garantir que LINQ to Entities consultas tenham a mesma funcionalidade que as consultas executadas usando o ObjectQuery<T> .ObjectQuery is provided to ensure that LINQ to Entities queries have the same functionality as queries executed using ObjectQuery<T>. Você deve usar ObjectQuery<T> com um tipo especificado para consultar um modelo conceitual.You must use ObjectQuery<T> with a specified type to query a conceptual model. Para obter mais informações, consulte consultas de objeto.For more information, see Object Queries.
Propriedades
| CommandText |
Retorna o texto de comando para a consulta.Returns the command text for the query. |
| Context |
Obtém o contexto de objeto associado a esta consulta de objeto.Gets the object context associated with this object query. |
| EnablePlanCaching |
Obtém ou define um valor que indica se o plano de consulta deve ser armazenado em cache.Gets or sets a value that indicates whether the query plan should be cached. |
| MergeOption |
Obtém ou define como os objetos retornados de uma consulta são adicionados ao contexto de objeto.Gets or sets how objects returned from a query are added to the object context. |
| Parameters |
Obtém a coleção de parâmetros para esta consulta de objeto.Gets the parameter collection for this object query. |
Métodos
| Equals(Object) |
Determina se o objeto especificado é igual ao objeto atual.Determines whether the specified object is equal to the current object. (Herdado de Object) |
| Execute(MergeOption) |
Executa a consulta de objeto sem tipo com a opção de mesclagem especificada.Executes the untyped object query with the specified merge option. |
| GetHashCode() |
Serve como a função de hash padrão.Serves as the default hash function. (Herdado de Object) |
| GetResultType() |
Retorna informações sobre o tipo de resultado da consulta.Returns information about the result type of the query. |
| GetType() |
Obtém o Type da instância atual.Gets the Type of the current instance. (Herdado de Object) |
| MemberwiseClone() |
Cria uma cópia superficial do Object atual.Creates a shallow copy of the current Object. (Herdado de Object) |
| ToString() |
Retorna uma cadeia de caracteres que representa o objeto atual.Returns a string that represents the current object. (Herdado de Object) |
| ToTraceString() |
Retorna os comandos a serem executados na fonte de dados.Returns the commands to execute against the data source. |
Implantações explícitas de interface
| IEnumerable.GetEnumerator() |
Retorna um enumerador que itera em uma coleção.Returns an enumerator that iterates through a collection. |
| IListSource.ContainsListCollection |
Obtém um valor que indica se a coleção retornada contém objetos de coleção.Gets a value that indicates whether the collection returned by the query contains collection objects. |
| IListSource.GetList() |
Retorna a coleção como um IList usado para associação de dados.Returns the collection as an IList used for data binding. |
| IQueryable.ElementType |
Obtém o tipo de elemento de resultado para esta instância de consulta.Gets the result element type for this query instance. |
| IQueryable.Expression |
Obtém a expressão que descreve esta consulta.Gets the expression describing this query. |
| IQueryable.Provider |
Obtém o IQueryProvider LINQ associado a esta instância de consulta.Gets the LINQ IQueryProvider associated with this query instance. |
Métodos de Extensão
| Cast<TResult>(IEnumerable) |
Converte os elementos de um IEnumerable para o tipo especificado.Casts the elements of an IEnumerable to the specified type. |
| OfType<TResult>(IEnumerable) |
Filtra os elementos de um IEnumerable com base em um tipo especificado.Filters the elements of an IEnumerable based on a specified type. |
| AsParallel(IEnumerable) |
Habilita a paralelização de uma consulta.Enables parallelization of a query. |
| AsQueryable(IEnumerable) |
Converte um IEnumerable em um IQueryable.Converts an IEnumerable to an IQueryable. |
| Cast<TResult>(IQueryable) |
Converte os elementos de um IQueryable para o tipo especificado.Converts the elements of an IQueryable to the specified type. |
| OfType<TResult>(IQueryable) |
Filtra os elementos de um IQueryable com base em um tipo especificado.Filters the elements of an IQueryable based on a specified type. |