GetOriginalEntityState Method

Table<TEntity>.GetOriginalEntityState Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Returns an instance that contains the original state of the entity.

Namespace:  System.Data.Linq
Assembly:  System.Data.Linq (in System.Data.Linq.dll)

public TEntity GetOriginalEntityState(
	TEntity entity
)

Parameters

entity
Type: TEntity
The entity whose original state is to be returned.

Return Value

Type: TEntity
A Table<TEntity> instance in its original state.

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.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft