ObjectSet<TEntity>.ApplyOriginalValues(TEntity) 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.
Sets the OriginalValues property of an ObjectStateEntry to match the property values of a supplied object.
public:
TEntity ApplyOriginalValues(TEntity originalEntity);
public TEntity ApplyOriginalValues (TEntity originalEntity);
member this.ApplyOriginalValues : 'Entity -> 'Entity
Public Function ApplyOriginalValues (originalEntity As TEntity) As TEntity
Parameters
- originalEntity
- TEntity
The detached object that has property updates to apply to the original object. The entity key of originalEntity
must match the EntityKey property of an entry in the ObjectContext.
Returns
TEntity
The updated object.
Remarks
This method is a wrapper around the ApplyOriginalValues method.
Applies to
See also
Vertu í samstarfi við okkur á GitHub
Heimildina fyrir þetta efni er að finna á GitHub, þar sem þú getur líka búið til og farið yfir vandamál og sameinað beiðnir. Frekari upplýsingar er að finna í framlagshandbók okkar.