The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
ObjectContext::CreateQuery<T> Method (String^, array<ObjectParameter^>^)
Entity Framework 6.0
Creates an ObjectQuery<T> in the current object context by using the specified query string.
Assembly: EntityFramework (in EntityFramework.dll)
public: generic<typename T> virtual ObjectQuery<T>^ CreateQuery( String^ queryString, ... array<ObjectParameter^>^ parameters )
Parameters
- queryString
-
Type:
System::String^
The query string to be executed.
- parameters
-
Type:
array<System.Data.Entity.Core.Objects::ObjectParameter^>^
Parameters to pass to the query.
Return Value
Type: System.Data.Entity.Core.Objects::ObjectQuery<T>^An ObjectQuery<T> of the specified type.
Type Parameters
- T
The entity type of the returned ObjectQuery<T>.
| Exception | Condition |
|---|---|
| ArgumentNullException | The queryString or parameters parameter is null. |
Show: