Share via


RelatedEnd.Load Method

Definition

Overloads

Load()

Loads the related object or objects into the related end with the default merge option.

Load(MergeOption)

Loads an object or objects from the related end with the specified merge option.

Load()

Loads the related object or objects into the related end with the default merge option.

public void Load ();
abstract member Load : unit -> unit
override this.Load : unit -> unit
Public Sub Load ()

Implements

Exceptions

When the source object was retrieved by using a NoTracking query and the MergeOption is not NoTracking or the related objects are already loaded or when the source object is not attached to the ObjectContext or when the source object is being tracked but is in the Added or Deleted state or the MergeOption used for Load() is NoTracking.

Applies to

Load(MergeOption)

Loads an object or objects from the related end with the specified merge option.

public abstract void Load (System.Data.Entity.Core.Objects.MergeOption mergeOption);
abstract member Load : System.Data.Entity.Core.Objects.MergeOption -> unit

Parameters

mergeOption
MergeOption

The MergeOption to use when merging objects into an existing EntityCollection<TEntity>.

Implements

Exceptions

When the source object was retrieved by using a NoTracking query and the MergeOption is not NoTracking or the related objects are already loaded or when the source object is not attached to the ObjectContext or when the source object is being tracked but is in the Added or Deleted state or the MergeOption used for Load() is NoTracking.

Applies to