ObjectSet<TEntity>.ApplyCurrentValues(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.
Copies the scalar values from the supplied object into the object in the ObjectContext that has the same key.
public:
TEntity ApplyCurrentValues(TEntity currentEntity);
public TEntity ApplyCurrentValues (TEntity currentEntity);
member this.ApplyCurrentValues : 'Entity -> 'Entity
Public Function ApplyCurrentValues (currentEntity As TEntity) As TEntity
Parameters
- currentEntity
- TEntity
The detached object that has property updates to apply to the original object. The entity key of currentEntity
must match the EntityKey property of an entry in the ObjectContext.
Returns
The updated object.
Remarks
This method is a wrapper around the ApplyCurrentValues method.
Applies to
See also
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για