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 като механизъм за обратна връзка за съдържание и ще го заменим с нова система за обратна връзка. За повече информация вижте:Подаване и преглед на обратна връзка за