ObjectQuery.Execute(MergeOption) Method

Definition

Executes the untyped object query with the specified merge option.

public:
 System::Data::Objects::ObjectResult ^ Execute(System::Data::Objects::MergeOption mergeOption);
public System.Data.Objects.ObjectResult Execute (System.Data.Objects.MergeOption mergeOption);
member this.Execute : System.Data.Objects.MergeOption -> System.Data.Objects.ObjectResult
Public Function Execute (mergeOption As MergeOption) As ObjectResult

Parameters

mergeOption
MergeOption

The MergeOption to use when executing the query. The default is AppendOnly.

Returns

An ObjectResult<T> that contains a collection of entity objects returned by the query.

Remarks

The default merge option for object queries is AppendOnly. For more information, see Identity Resolution, State Management, and Change Tracking.

Call the Execute method on ObjectQuery<T> for typed object queries.

Applies to

See also