次の方法で共有


ObjectContext.ApplyPropertyChanges(String, Object) メソッド

定義

注意事項

Use ApplyCurrentValues instead

デタッチしたオブジェクトのプロパティの変更を、オブジェクト コンテキストに既にアタッチされているオブジェクトに適用します。

[System.ComponentModel.Browsable(false)]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Obsolete("Use ApplyCurrentValues instead")]
public virtual void ApplyPropertyChanges (string entitySetName, object changed);
abstract member ApplyPropertyChanges : string * obj -> unit
override this.ApplyPropertyChanges : string * obj -> unit
Public Overridable Sub ApplyPropertyChanges (entitySetName As String, changed As Object)

パラメーター

entitySetName
String

オブジェクトが属しているエンティティ セットの名前。

changed
Object

元のオブジェクトに適用するプロパティ更新を含むデタッチしたオブジェクト。

属性

例外

entitySetName が null または空の文字列の場合、または変更された場合が null の場合。

EntitySet from entitySetName がオブジェクトEntityKeyの と一致EntitySetしない場合、またはエンティティが または 以外ModifiedUnchangedの状態にある場合、または元のオブジェクトがコンテキストにアタッチされていない場合。

changed オブジェクトの型が元のオブジェクトの型とは異なる場合。

適用対象