Entry. Reload Method
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.
Reloads the entity from the database overwriting any property values with values from the database.
The entity will be in the Unchanged state after calling this method, unless the entity does not exist in the database, in which case the entity will be Detached. Finally, calling Reload on an Added entity that does not exist in the database is a no-op. Note, however, that an Added entity may not yet have had its permanent key value created.
public virtual void Reload ();
abstract member Reload : unit -> unit override this.Reload : unit -> unit
Public Overridable Sub Reload ()
See Accessing tracked entities in EF Core for more information.
Submit and view feedback for