Export (0) Print
Expand All

Table(Of TEntity).ITable.Attach Method (Object, Boolean)

Attaches all entities of a collection to the DataContext in either a modified or unmodified state.

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

'Declaration
Private Sub Attach ( _
	entity As Object, _
	asModified As Boolean _
) Implements ITable.Attach

Parameters

entity
Type: System.Object

The entity to be attached.

asModified
Type: System.Boolean

true to attach the entity as modified; false to attached the entity as unmodified.

Implements

ITable.Attach(Object, Boolean)

This member is an explicit interface member implementation. It can be used only when the Table(Of 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