Bewerken

Share via


IRelatedEnd.Load Method

Definition

Loads the related object or objects into this related end.

Overloads

Load()

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

Load(MergeOption)

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

Remarks

Load is called to explicitly load related objects from a related end that is exposed by a navigation property. For more information, see Loading Related Objects.

Load()

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

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

Remarks

The RelatedEnd class implements the Load method of IRelatedEnd. For more information, see Load.

Load is called to explicitly load related objects from a related end exposed by a navigation property. For more information, see Loading Related Objects.

The Load method loads related objects from the data source whether or not IsLoaded is true.

Applies to

Load(MergeOption)

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

public:
 void Load(System::Data::Objects::MergeOption mergeOption);
public void Load (System.Data.Objects.MergeOption mergeOption);
abstract member Load : System.Data.Objects.MergeOption -> unit
Public Sub Load (mergeOption As MergeOption)

Parameters

mergeOption
MergeOption

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

Remarks

The RelatedEnd class implements the Load method. Both the EntityCollection<TEntity> and EntityReference<TEntity> classes override this implementation.

Load is called to explicitly load related objects from a related end that is exposed by a navigation property. For more information, see Loading Related Objects.

The Load method loads related objects from the data source whether or not IsLoaded is true.

Applies to