Edit

Share via


Table<TEntity>.ITable.AttachAll Method

Definition

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

Overloads

ITable.AttachAll(IEnumerable)

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

ITable.AttachAll(IEnumerable, Boolean)

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

ITable.AttachAll(IEnumerable)

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

 virtual void System.Data.Linq.ITable.AttachAll(System::Collections::IEnumerable ^ entities) = System::Data::Linq::ITable::AttachAll;
void ITable.AttachAll (System.Collections.IEnumerable entities);
abstract member System.Data.Linq.ITable.AttachAll : System.Collections.IEnumerable -> unit
override this.System.Data.Linq.ITable.AttachAll : System.Collections.IEnumerable -> unit
Sub AttachAll (entities As IEnumerable) Implements ITable.AttachAll

Parameters

entities
IEnumerable

The collection of entities to be attached.

Implements

Remarks

This member is an explicit interface member implementation. It can be used only when the Table<TEntity> instance is cast to an ITable interface.

Applies to

ITable.AttachAll(IEnumerable, Boolean)

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

 virtual void System.Data.Linq.ITable.AttachAll(System::Collections::IEnumerable ^ entities, bool asModified) = System::Data::Linq::ITable::AttachAll;
void ITable.AttachAll (System.Collections.IEnumerable entities, bool asModified);
abstract member System.Data.Linq.ITable.AttachAll : System.Collections.IEnumerable * bool -> unit
override this.System.Data.Linq.ITable.AttachAll : System.Collections.IEnumerable * bool -> unit
Sub AttachAll (entities As IEnumerable, asModified As Boolean) Implements ITable.AttachAll

Parameters

entities
IEnumerable

The collection of entities to be attached.

asModified
Boolean

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

Implements

Remarks

This member is an explicit interface member implementation. It can be used only when the Table<TEntity> instance is cast to an ITable interface.

Applies to