ObjectStateEntry.IEntityChangeTracker.EntityMemberChanging 方法

[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 msdn.com/data/ef。]

用于报告将要更改标量实体属性。在调用此方法时,缓存指定属性的当前值。

命名空间:  System.Data.Entity.Core.Objects
程序集:  EntityFramework(在 EntityFramework.dll 中)

语法

声明
<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")> _
Private Sub EntityMemberChanging ( _
    entityMemberName As String _
) Implements IEntityChangeTracker.EntityMemberChanging
用法
Dim instance As ObjectStateEntry 
Dim entityMemberName As String 

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

参数

  • entityMemberName
    类型:System.String
    要更改的实体属性的名称

Implements

IEntityChangeTracker.EntityMemberChanging(String)

请参阅

参考

ObjectStateEntry 类

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