共用方式為


ObjectStateEntry.IEntityChangeTracker.EntityComplexMemberChanged 方法

[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]

用來報告複雜屬性已變更。EntityMemberChanging 期間快取的屬性值現在會加入至 OriginalValues

命名空間:  System.Data.Entity.Core.Objects
組件:  EntityFramework (在 EntityFramework.dll 中)

語法

'宣告
<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")> _
Private Sub EntityComplexMemberChanged ( _
    entityMemberName As String, _
    complexObject As Object, _
    complexObjectMemberName As String _
) Implements IEntityChangeTracker.EntityComplexMemberChanged
'用途
Dim instance As ObjectStateEntry 
Dim entityMemberName As String 
Dim complexObject As Object 
Dim complexObjectMemberName As String 

CType(instance, IEntityChangeTracker).EntityComplexMemberChanged(entityMemberName, _
    complexObject, complexObjectMemberName)
[SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
void IEntityChangeTracker.EntityComplexMemberChanged(
    string entityMemberName,
    Object complexObject,
    string complexObjectMemberName
)
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
private:
virtual void EntityComplexMemberChanged(
    String^ entityMemberName, 
    Object^ complexObject, 
    String^ complexObjectMemberName
) sealed = IEntityChangeTracker::EntityComplexMemberChanged
[<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")>]
private abstract EntityComplexMemberChanged : 
        entityMemberName:string * 
        complexObject:Object * 
        complexObjectMemberName:string -> unit 
[<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")>]
private override EntityComplexMemberChanged : 
        entityMemberName:string * 
        complexObject:Object * 
        complexObjectMemberName:string -> unit
JScript supports the use of explicit interface implementations, but not the declarations of new ones.

參數

  • entityMemberName
    類型:System.String
    已變更的最上層實體屬性名稱
  • complexObject
    類型:System.Object
    包含已變更之屬性的複雜物件
  • complexObjectMemberName
    類型:System.String
    complexObject 上已變更的屬性名稱

Implements

IEntityChangeTracker.EntityComplexMemberChanged(String, Object, String)

請參閱

參考

ObjectStateEntry 類別

System.Data.Entity.Core.Objects 命名空間