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 のエンティティ キーは、 内ObjectContextEntityKeyエントリの プロパティと一致する必要があります。

戻り値

TEntity

更新後のオブジェクト。

適用対象