Export (0) Print
Expand All

Table<TEntity>.ITable.Attach Method (Object, Object)

Attaches an entity to the DataContext in either a modified or unmodified state by specifying both the entity and its original state.

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

void ITable.Attach(
	Object entity,
	Object original
)

Parameters

entity
Type: System.Object

The entity to be attached.

original
Type: System.Object

An instance of the same entity type with data members that contain the original values.

Implements

ITable.Attach(Object, Object)

This member is an explicit interface member implementation. It can be used only when the Table<TEntity> instance is cast to an ITable interface.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft