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 メソッドのラッパーです。

適用対象

こちらもご覧ください