Share via


ChangeSet.GetOriginal<TEntity> Method

[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]

Gets the original unmodified entity for the specified entity.

Namespace:  System.ServiceModel.DomainServices.Server
Assembly:  System.ServiceModel.DomainServices.Server (in System.ServiceModel.DomainServices.Server.dll)

Syntax

'Declaration
Public Function GetOriginal(Of TEntity As Class) ( _
    clientEntity As TEntity _
) As TEntity
'Usage
Dim instance As ChangeSet
Dim clientEntity As TEntity
Dim returnValue As TEntity

returnValue = instance.GetOriginal(clientEntity)
public TEntity GetOriginal<TEntity>(
    TEntity clientEntity
)
where TEntity : class
public:
generic<typename TEntity>
where TEntity : ref class
TEntity GetOriginal(
    TEntity clientEntity
)
member GetOriginal : 
        clientEntity:'TEntity -> 'TEntity  when 'TEntity : not struct
JScript does not support generic types and methods.

Type Parameters

  • TEntity
    The entity type.

Parameters

  • clientEntity
    Type: TEntity
    The client modified entity.

Return Value

Type: TEntity
The original unmodified entity for the specified clientEntity.

Exceptions

Exception Condition
[ArgumentNullException]

clientEntity is nulla null reference (Nothing in Visual Basic).

[ArgumentException]

clientEntity is not in the change set.

[InvalidOperationException]

operation is an Insert.

Remarks

Note that only members marked with RoundtripOriginalAttribute will be set in the returned instance.

See Also

Reference

ChangeSet Class

System.ServiceModel.DomainServices.Server Namespace