RelatedEnd.Merge<TEntity> Method
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.
Merges related entities into the local EntityCollection<TEntity>.
protected:
generic <typename TEntity>
void Merge(System::Collections::Generic::IEnumerable<TEntity> ^ collection, System::Data::Objects::MergeOption mergeOption, bool setIsLoaded);
protected void Merge<TEntity> (System.Collections.Generic.IEnumerable<TEntity> collection, System.Data.Objects.MergeOption mergeOption, bool setIsLoaded);
member this.Merge : seq<'Entity> * System.Data.Objects.MergeOption * bool -> unit
Protected Sub Merge(Of TEntity) (collection As IEnumerable(Of TEntity), mergeOption As MergeOption, setIsLoaded As Boolean)
Type Parameters
- TEntity
The type of the IEnumerable<T> collection of entity objects to be merged.
Parameters
- collection
- IEnumerable<TEntity>
An IEnumerable<T> collection of entity objects to add to this related end.
- mergeOption
- MergeOption
The MergeOption to use when merging objects into an existing EntityCollection<TEntity>.
- setIsLoaded
- Boolean
Indicates whether the set of related objects is complete and matches the server. Operations such as Load(MergeOption) set setIsLoaded to true
, but Attach sets it to false
.
Remarks
The Merge<TEntity>
method is called by Object Services during relationship operations.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort: Gedurende 2024 worden GitHub Issues uitgefaseerd als het feedbackmechanisme voor inhoud. Dit wordt vervangen door een nieuw feedbacksysteem. Ga voor meer informatie naar:Feedback verzenden en bekijken voor