Attach Method
Collapse the table of content
Expand the table of content

ITable<TEntity>.Attach Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft