EntityReference<TEntity>.Load(MergeOption) 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.
Loads the related object for this EntityReference<TEntity> with the specified merge option.
public override void Load(System.Data.Entity.Core.Objects.MergeOption mergeOption);
override this.Load : System.Data.Entity.Core.Objects.MergeOption -> unit
Parameters
- mergeOption
- MergeOption
Specifies how the object should be returned if it already exists in the ObjectContext .
Exceptions
The source of the EntityReference<TEntity> is null or a query returned more than one related end or a query returned zero related ends, and one related end was expected.