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.
Applies to
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for