共用方式為


EntityStateChangedEventArgs 建構函式

定義

這是支援 Entity Framework Core 基礎結構的內部 API,不受與公用 API 相同的相容性標準。 它可能會在任何版本中變更或移除,而不會有任何通知。 您應該只在程式碼中直接使用它,並知道這麼做可能會導致應用程式在更新至新的 Entity Framework Core 版本時失敗。

public EntityStateChangedEventArgs (Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry internalEntityEntry, Microsoft.EntityFrameworkCore.EntityState oldState, Microsoft.EntityFrameworkCore.EntityState newState);
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public EntityStateChangedEventArgs (Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry internalEntityEntry, Microsoft.EntityFrameworkCore.EntityState oldState, Microsoft.EntityFrameworkCore.EntityState newState);
new Microsoft.EntityFrameworkCore.ChangeTracking.EntityStateChangedEventArgs : Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry * Microsoft.EntityFrameworkCore.EntityState * Microsoft.EntityFrameworkCore.EntityState -> Microsoft.EntityFrameworkCore.ChangeTracking.EntityStateChangedEventArgs
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
new Microsoft.EntityFrameworkCore.ChangeTracking.EntityStateChangedEventArgs : Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry * Microsoft.EntityFrameworkCore.EntityState * Microsoft.EntityFrameworkCore.EntityState -> Microsoft.EntityFrameworkCore.ChangeTracking.EntityStateChangedEventArgs
Public Sub New (internalEntityEntry As InternalEntityEntry, oldState As EntityState, newState As EntityState)

參數

internalEntityEntry
Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry
oldState
EntityState
newState
EntityState
屬性

適用於