IRepository<TEntity, TPrimaryKey>.Reload(TEntity) Method
Reloads the entity from the store overwriting any property values with values from the store and returns a reloaded entity.
Namespace: DevExpress.Mvvm.DataModel
Assembly: DevExpress.Mvvm.v24.1.DataModel.dll
NuGet Package: DevExpress.Scaffolding.Core
Declaration
Parameters
Name | Type | Description |
---|---|---|
entity | TEntity | An entity to reload. |
Returns
Type | Description |
---|---|
TEntity | The reloaded entity. |
Remarks
This method returns the same entity instance with updated properties or new one depending on the implementation.
The entity will be in the EntityState.Unchanged state after calling this method.
See Also