Language

ObjectSet<TEntity>.ApplyCurrentValues(TEntity) メソッド

定義

指定されたオブジェクトから、同じキーを持つ ObjectContext 内のオブジェクトにスカラー値をコピーします。

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

パラメーター

currentEntity
TEntity

元のオブジェクトに適用するプロパティの更新があるデタッチされたオブジェクト。 currentEntity のエンティティ キーは、ObjectContextのエントリのEntityKey プロパティと一致する必要があります。

戻り値

TEntity

更新されたオブジェクト。

適用対象