Table<TEntity>.GetOriginalEntityState Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

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

Syntax

'Declaration
Public Function GetOriginalEntityState ( _
    entity As TEntity _
) As TEntity
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.

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.

Version Information

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.