ערוך

שתף באמצעות


ITable.AttachAll Method

Definition

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

Overloads

AttachAll(IEnumerable)

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

AttachAll(IEnumerable, Boolean)

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

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

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

Applies to

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

The collection of entities.

asModified
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