Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Table<TEntity>.ITable.AttachAll Method (IEnumerable, 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)

void ITable.AttachAll(
	IEnumerable entities,
	bool asModified
)

Parameters

entities
Type: System.Collections.IEnumerable

The collection of entities to be attched.

asModified
Type: System.Boolean

true to attach the entities as modified; false to attach the entities as unmodified.

Implements

ITable.AttachAll(IEnumerable, Boolean)

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