ObjectStateEntry.IEntityChangeTracker.EntityComplexMemberChanging 方法

[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 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 命名空间