ObjectStateEntry.IEntityChangeTracker.EntityMemberChanged 方法
[此頁面專屬於 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 EntityMemberChanged ( _
entityMemberName As String _
) Implements IEntityChangeTracker.EntityMemberChanged
'用途
Dim instance As ObjectStateEntry
Dim entityMemberName As String
CType(instance, IEntityChangeTracker).EntityMemberChanged(entityMemberName)
[SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
void IEntityChangeTracker.EntityMemberChanged(
string entityMemberName
)
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
private:
virtual void EntityMemberChanged(
String^ entityMemberName
) sealed = IEntityChangeTracker::EntityMemberChanged
[<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")>]
private abstract EntityMemberChanged :
entityMemberName:string -> unit
[<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")>]
private override EntityMemberChanged :
entityMemberName:string -> unit
JScript supports the use of explicit interface implementations, but not the declarations of new ones.
參數
- entityMemberName
類型:System.String
已變更之實體屬性的名稱
Implements
IEntityChangeTracker.EntityMemberChanged(String)