ITable.AttachAll ITable.AttachAll ITable.AttachAll ITable.AttachAll Method

Definition

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

Overloads

AttachAll(IEnumerable) AttachAll(IEnumerable) AttachAll(IEnumerable) AttachAll(IEnumerable)

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

AttachAll(IEnumerable, Boolean) AttachAll(IEnumerable, Boolean) AttachAll(IEnumerable, Boolean) AttachAll(IEnumerable, Boolean)

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

AttachAll(IEnumerable) AttachAll(IEnumerable) AttachAll(IEnumerable) AttachAll(IEnumerable)

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

public:
 void AttachAll(System::Collections::IEnumerable ^ entities);
public void AttachAll (System.Collections.IEnumerable entities);
abstract member AttachAll : System.Collections.IEnumerable -> unit
Public Sub AttachAll (entities As IEnumerable)

Parameters

entities
IEnumerable IEnumerable IEnumerable IEnumerable

The collection of entities.

Remarks

For more information about how to use this method, see Data Retrieval and CUD Operations in N-Tier Applications (LINQ to SQL).

AttachAll(IEnumerable, Boolean) AttachAll(IEnumerable, Boolean) AttachAll(IEnumerable, Boolean) AttachAll(IEnumerable, Boolean)

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

public:
 void AttachAll(System::Collections::IEnumerable ^ entities, bool asModified);
public void AttachAll (System.Collections.IEnumerable entities, bool asModified);
abstract member AttachAll : System.Collections.IEnumerable * bool -> unit
Public Sub AttachAll (entities As IEnumerable, asModified As Boolean)

Parameters

entities
IEnumerable IEnumerable IEnumerable IEnumerable

The collection of entities.

asModified
Boolean Boolean Boolean Boolean

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).

Applies to