ObjectQuery<T> Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
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>(String, ObjectContext)
Creates a new ObjectQuery<T> instance using the specified Entity SQL command as the initial query.
public ObjectQuery (string commandText, System.Data.Entity.Core.Objects.ObjectContext context);
new System.Data.Entity.Core.Objects.ObjectQuery<'T> : string * System.Data.Entity.Core.Objects.ObjectContext -> System.Data.Entity.Core.Objects.ObjectQuery<'T>
Public Sub New (commandText As String, context As ObjectContext)
Parameters
- commandText
- String
The Entity SQL query.
- context
- ObjectContext
The ObjectContext on which to execute the query.
Applies to
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.
public ObjectQuery (string commandText, System.Data.Entity.Core.Objects.ObjectContext context, System.Data.Entity.Core.Objects.MergeOption mergeOption);
new System.Data.Entity.Core.Objects.ObjectQuery<'T> : string * System.Data.Entity.Core.Objects.ObjectContext * System.Data.Entity.Core.Objects.MergeOption -> System.Data.Entity.Core.Objects.ObjectQuery<'T>
Parameters
- commandText
- String
The Entity SQL query.
- context
- ObjectContext
The ObjectContext on which to execute the query.
- mergeOption
- 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 .
Applies to
Entity Framework