通过


ObjectSet<TEntity>.ApplyCurrentValues(TEntity) 方法

定义

将所提供的对象中的标量值复制到具有相同键的对象中 ObjectContext

public:
 TEntity ApplyCurrentValues(TEntity currentEntity);
public TEntity ApplyCurrentValues(TEntity currentEntity);
member this.ApplyCurrentValues : 'Entity -> 'Entity
Public Function ApplyCurrentValues (currentEntity As TEntity) As TEntity

参数

currentEntity
TEntity

具有要应用于原始对象的属性更新的分离对象。 的实体键currentEntity必须与条目ObjectContext的属性匹配EntityKey

返回

TEntity

更新的对象。

注解

此方法是方法的 ApplyCurrentValues 包装器。

适用于

另请参阅