Table<TEntity>.ITable.AttachAll Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.