ObjectSet<TEntity>.Attach(TEntity) 方法

定义

将对象或对象图附加到当前实体集中的对象上下文。

public void Attach(TEntity entity);
abstract member Attach : 'Entity -> unit
override this.Attach : 'Entity -> unit
Public Sub Attach (entity As TEntity)

参数

entity
TEntity

要附加的对象。

实现

适用于