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
คำติชม
https://aka.ms/ContentUserFeedback
เร็วๆ นี้: ตลอดปี 2024 เราจะขจัดปัญหา GitHub เพื่อเป็นกลไกคำติชมสำหรับเนื้อหา และแทนที่ด้วยระบบคำติชมใหม่ สำหรับข้อมูลเพิ่มเติม ให้ดู:ส่งและดูข้อคิดเห็นสำหรับ