IRelatedEnd.IsLoaded Property
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.
Gets or sets a value indicating whether the entity (for an EntityReference or all entities in the collection (for an EntityCollection<TEntity> have been loaded from the database.
public bool IsLoaded { get; set; }
member this.IsLoaded : bool with get, set
Public Property IsLoaded As Boolean
Property Value
True if all the related entities are loaded or the IsLoaded has been explicitly set to true; otherwise false.
Remarks
Loading the related entities from the database either using lazy-loading, as part of a query, or explicitly with one of the Load methods will set the IsLoaded flag to true. IsLoaded can be explicitly set to true to prevent the related entities from being lazy-loaded. This can be useful if the application has caused a subset of related entities to be loaded and wants to prevent any other entities from being loaded automatically. Note that explicit loading using Load() will load all related entities from the database regardless of whether or not IsLoaded is true. When any related entity is detached the IsLoaded flag is reset to false indicating that not all related entities are now loaded.
Applies to
Entity Framework