ObjectStateEntry.IEntityChangeTracker.EntityMemberChanging 方法
[此頁面專屬於 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 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)