ObjectQuery<T> Constructor
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | ObjectQuery<T>(String, ObjectContext) | Creates a new ObjectQuery<T> instance using the specified Entity SQL command as the initial query. |
![]() | ObjectQuery<T>(String, ObjectContext, MergeOption) | Creates a new ObjectQuery<T> instance using the specified Entity SQL command as the initial query and the specified merge option. |
ObjectQuery<T> Constructor (String, ObjectContext)
Creates a new ObjectQuery<T> instance using the specified Entity SQL command as the initial query.
Parameters
- commandText
-
Type:
System.String
The Entity SQL query.
- context
-
Type:
System.Data.Entity.Core.Objects.ObjectContext
The ObjectContext on which to execute the query.
ObjectQuery<T> Constructor (String, ObjectContext, MergeOption)
Creates a new ObjectQuery<T> instance using the specified Entity SQL command as the initial query and the specified merge option.
Parameters
- commandText
-
Type:
System.String
The Entity SQL query.
- context
-
Type:
System.Data.Entity.Core.Objects.ObjectContext
The ObjectContext on which to execute the query.
- mergeOption
-
Type:
System.Data.Entity.Core.Objects.MergeOption
Specifies how the entities that are retrieved through this query should be merged with the entities that have been returned from previous queries against the same ObjectContext .