ObjectQuery Klasa
Definicja
Implementuje typowe funkcje dla zapytań względem modelu koncepcyjnego przy użyciu zarówno LINQ to Entities, jak i 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
- Dziedziczenie
-
ObjectQuery
- Pochodne
- Implementuje
Uwagi
ObjectQuery jest klasą bazową dla zapytań względem modelu koncepcyjnego.ObjectQuery is the base class for queries against a conceptual model. ObjectQuery zapewnia, że zapytania LINQ to Entities mają takie same funkcje jak zapytania wykonywane przy użyciu ObjectQuery<T> .ObjectQuery is provided to ensure that LINQ to Entities queries have the same functionality as queries executed using ObjectQuery<T>. Należy użyć ObjectQuery<T> z określonym typem, aby wykonać zapytanie względem modelu koncepcyjnego.You must use ObjectQuery<T> with a specified type to query a conceptual model. Aby uzyskać więcej informacji, zobacz zapytania dotyczące obiektów.For more information, see Object Queries.
Właściwości
CommandText |
Zwraca tekst polecenia dla zapytania.Returns the command text for the query. |
Context |
Pobiera kontekst obiektu skojarzony z tym zapytaniem obiektu.Gets the object context associated with this object query. |
EnablePlanCaching |
Pobiera lub ustawia wartość wskazującą, czy plan zapytania ma być buforowany.Gets or sets a value that indicates whether the query plan should be cached. |
MergeOption |
Pobiera lub ustawia sposób, w jaki obiekty zwracane z zapytania są dodawane do kontekstu obiektu.Gets or sets how objects returned from a query are added to the object context. |
Parameters |
Pobiera kolekcję parametrów dla tego zapytania obiektu.Gets the parameter collection for this object query. |
Metody
Equals(Object) |
Określa, czy dany obiekt jest taki sam, jak bieżący obiekt.Determines whether the specified object is equal to the current object. (Odziedziczone po Object) |
Execute(MergeOption) |
Wykonuje zapytanie obiektu bez typu z określoną opcją scalania.Executes the untyped object query with the specified merge option. |
GetHashCode() |
Służy jako domyślna funkcja skrótu.Serves as the default hash function. (Odziedziczone po Object) |
GetResultType() |
Zwraca informacje o typie wyniku zapytania.Returns information about the result type of the query. |
GetType() |
Pobiera Type bieżące wystąpienie.Gets the Type of the current instance. (Odziedziczone po Object) |
MemberwiseClone() |
Tworzy skróconą kopię bieżącego elementu Object .Creates a shallow copy of the current Object. (Odziedziczone po Object) |
ToString() |
Zwraca ciąg reprezentujący bieżący obiekt.Returns a string that represents the current object. (Odziedziczone po Object) |
ToTraceString() |
Zwraca polecenia do wykonania względem źródła danych.Returns the commands to execute against the data source. |
Jawne implementacje interfejsu
IEnumerable.GetEnumerator() |
Zwraca moduł wyliczający, który iteruje po kolekcji.Returns an enumerator that iterates through a collection. |
IListSource.ContainsListCollection |
Pobiera wartość wskazującą, czy kolekcja zwrócona przez zapytanie zawiera obiekty kolekcji.Gets a value that indicates whether the collection returned by the query contains collection objects. |
IListSource.GetList() |
Zwraca kolekcję jako IList użytą do powiązania danych.Returns the collection as an IList used for data binding. |
IQueryable.ElementType |
Pobiera typ elementu wynikowego dla tego wystąpienia zapytania.Gets the result element type for this query instance. |
IQueryable.Expression |
Pobiera wyrażenie opisujące to zapytanie.Gets the expression describing this query. |
IQueryable.Provider |
Pobiera LINQ IQueryProvider skojarzone z tym wystąpieniem zapytania.Gets the LINQ IQueryProvider associated with this query instance. |
Metody rozszerzania
Cast<TResult>(IEnumerable) |
Rzutuje elementy elementu IEnumerable do określonego typu.Casts the elements of an IEnumerable to the specified type. |
OfType<TResult>(IEnumerable) |
Filtruje elementy IEnumerable w oparciu o określony typ.Filters the elements of an IEnumerable based on a specified type. |
AsParallel(IEnumerable) |
Włącza przetwarzanie równoległe zapytania.Enables parallelization of a query. |
AsQueryable(IEnumerable) |
Konwertuje IEnumerable do IQueryable .Converts an IEnumerable to an IQueryable. |
Cast<TResult>(IQueryable) |
Konwertuje elementy elementu IQueryable do określonego typu.Converts the elements of an IQueryable to the specified type. |
OfType<TResult>(IQueryable) |
Filtruje elementy IQueryable w oparciu o określony typ.Filters the elements of an IQueryable based on a specified type. |