LinqConnect Documentation
Devart.Data.Linq Namespace / ITable Interface / AttachAll Method / AttachAll(IEnumerable,Boolean) Method
The collection of entities.
true to attach the entities as modified.

AttachAll(IEnumerable,Boolean) Method
Attaches all entities of a collection to the DataContext in either a modified or unmodified state.
Syntax
'Declaration
 
Overloads Sub AttachAll( _
   ByVal entities As IEnumerable, _
   ByVal asModified As Boolean _
) 
 

Parameters

entities
The collection of entities.
asModified
true to attach the entities as modified.
Remarks
For more information about how to use this method, see Data Retrieval and CUD Operations in N-Tier Applications (LINQ to SQL).
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also