共用方式為


ObjectStateEntry.IEntityChangeTracker.EntityComplexMemberChanging 方法

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

用來報告複雜屬性將會變更。呼叫此方法時會快取所指定屬性的目前值。

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

語法

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

CType(instance, IEntityChangeTracker).EntityComplexMemberChanging(entityMemberName, _
    complexObject, complexObjectMemberName)
[SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
void IEntityChangeTracker.EntityComplexMemberChanging(
    string entityMemberName,
    Object complexObject,
    string complexObjectMemberName
)
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
private:
virtual void EntityComplexMemberChanging(
    String^ entityMemberName, 
    Object^ complexObject, 
    String^ complexObjectMemberName
) sealed = IEntityChangeTracker::EntityComplexMemberChanging
[<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")>]
private abstract EntityComplexMemberChanging : 
        entityMemberName:string * 
        complexObject:Object * 
        complexObjectMemberName:string -> unit 
[<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")>]
private override EntityComplexMemberChanging : 
        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.EntityComplexMemberChanging(String, Object, String)

請參閱

參考

ObjectStateEntry 類別

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