Table<TEntity>.GetOriginalEntityState(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.
Returns a Table<TEntity> instance that contains the original state of the entity.
public:
TEntity GetOriginalEntityState(TEntity entity);
public TEntity GetOriginalEntityState (TEntity entity);
member this.GetOriginalEntityState : 'Entity -> 'Entity
Public Function GetOriginalEntityState (entity As TEntity) As TEntity
Parameters
- entity
- TEntity
The entity whose original state is to be returned.
Returns
A Table<TEntity> instance that contains the original state of the entity.
Remarks
This method returns the original state of an entity since it was either created or attached to the current DataContext. The original state of an entity that has been serialized and deserialized must be provided by an independent tracking mechanism and supplied when the entity is attached to a new DataContext. For more information, see Data Retrieval and CUD Operations in N-Tier Applications (LINQ to SQL).
Applies to
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για