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,才能使用它。

适用于