ITable<TEntity>.Attach Method (TEntity)

 

When overridden, attaches a disconnected or "detached" entity to a new DataContext when original values are required for optimistic concurrency checks.

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

void Attach(
	TEntity entity
)

Parameters

entity
Type: TEntity

The object to be added.

For more information, see Attach.

.NET Framework
Available since 4.0
Windows Phone Silverlight
Available since 7.1
Return to top
Show: