Refresh the state of the instance from the database, overwriting changes made to the entity, if any.

Namespace: Hypertable.Persistence
Assembly: ht4o (in ht4o.dll) Version: 0.9.8.11 (0.9.8.11)

Syntax

         
 C#  Visual Basic  Visual C++ 
public T Refresh<T>(
	T entity
)
where T : class
Public Function Refresh(Of T As Class) ( _
	entity As T _
) As T
public:
generic<typename T>
where T : ref class
T Refresh(
	T entity
)

Parameters

entity
T
The entity to refresh.

Type Parameters

T
The entity type.

Return Value

The entity.

See Also