Table<TEntity>.ITable.AttachAll 方法

定義

以已修改或未修改的狀態,將集合的所有實體附加至 DataContext

多載

ITable.AttachAll(IEnumerable)

以已修改或未修改的狀態,將集合的所有實體附加至 DataContext

ITable.AttachAll(IEnumerable, Boolean)

以已修改或未修改的狀態,將集合的所有實體附加至 DataContext

ITable.AttachAll(IEnumerable)

以已修改或未修改的狀態,將集合的所有實體附加至 DataContext

 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

參數

entities
IEnumerable

要附加的實體集合。

實作

備註

這個成員是明確介面成員實作, 只有在 Table<TEntity> 執行個體轉換成 ITable 介面時,才能使用這個成員。

適用於

ITable.AttachAll(IEnumerable, Boolean)

以已修改或未修改的狀態,將集合的所有實體附加至 DataContext

 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

參數

entities
IEnumerable

要附加的實體集合。

asModified
Boolean

true 表示以修改的方式附加實體,false 表示以未修改的方式附加實體。

實作

備註

這個成員是明確介面成員實作, 只有在 Table<TEntity> 執行個體轉換成 ITable 介面時,才能使用這個成員。

適用於