Interface IStateManager
- Assembly
- Microsoft.EntityFrameworkCore.dll
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
public interface IStateManager : IResettableService
- Inherited Members
- Extension Methods
Remarks
The service lifetime is Scoped. This means that each DbContext instance will use its own instance of this service. The implementation may depend on other services registered with any lifetime. The implementation does not need to be thread-safe.
Properties
CascadeDeleteTiming
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
CascadeTiming CascadeDeleteTiming { get; set; }
Property Value
ChangedCount
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
int ChangedCount { get; set; }
Property Value
Context
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
DbContext Context { get; }
Property Value
Count
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
int Count { get; }
Property Value
DeleteOrphansTiming
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
CascadeTiming DeleteOrphansTiming { get; set; }
Property Value
Dependencies
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
StateManagerDependencies Dependencies { get; }
Property Value
EntityMaterializerSource
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
IEntityMaterializerSource EntityMaterializerSource { get; }
Property Value
Entries
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
IEnumerable<InternalEntityEntry> Entries { get; }
Property Value
InternalEntityEntryNotifier
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
IInternalEntityEntryNotifier InternalEntityEntryNotifier { get; }
Property Value
Model
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
IModel Model { get; }
Property Value
SavingChanges
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
bool SavingChanges { get; }
Property Value
SensitiveLoggingEnabled
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
bool SensitiveLoggingEnabled { get; }
Property Value
UpdateLogger
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
IDiagnosticsLogger<DbLoggerCategory.Update> UpdateLogger { get; }
Property Value
ValueGenerationManager
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
IValueGenerationManager ValueGenerationManager { get; }
Property Value
Methods
AbortAttachGraph()
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
void AbortAttachGraph()
AcceptAllChanges()
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
void AcceptAllChanges()
BeginAttachGraph()
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
void BeginAttachGraph()
CaptureEvents()
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
(EventHandler<EntityTrackingEventArgs>? Tracking, EventHandler<EntityTrackedEventArgs>? Tracked, EventHandler<EntityStateChangingEventArgs>? StateChanging, EventHandler<EntityStateChangedEventArgs>? StateChanged) CaptureEvents()
Returns
- (EventHandler<EntityTrackingEventArgs> Tracking, EventHandler<EntityTrackedEventArgs> Tracked, EventHandler<EntityStateChangingEventArgs> StateChanging, EventHandler<EntityStateChangedEventArgs> StateChanged)
CascadeChanges(bool)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
void CascadeChanges(bool force)
Parameters
force
bool
CascadeDelete(InternalEntityEntry, bool, IEnumerable<IForeignKey>?)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
void CascadeDelete(InternalEntityEntry entry, bool force, IEnumerable<IForeignKey>? foreignKeys = null)
Parameters
entry
InternalEntityEntryforce
boolforeignKeys
IEnumerable<IForeignKey>
ChangingState(InternalEntityEntry, EntityState)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
void ChangingState(InternalEntityEntry entry, EntityState newState)
Parameters
entry
InternalEntityEntrynewState
EntityState
Clear(bool)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
void Clear(bool resetting)
Parameters
resetting
bool
CompleteAttachGraph()
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
void CompleteAttachGraph()
CreateEntityFinder(IEntityType)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
IEntityFinder CreateEntityFinder(IEntityType entityType)
Parameters
entityType
IEntityType
Returns
CreateEntry(IDictionary<string, object?>, IEntityType)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
InternalEntityEntry CreateEntry(IDictionary<string, object?> values, IEntityType entityType)
Parameters
values
IDictionary<string, object>entityType
IEntityType
Returns
FindPrincipal(InternalEntityEntry, IForeignKey)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
InternalEntityEntry? FindPrincipal(InternalEntityEntry dependentEntry, IForeignKey foreignKey)
Parameters
dependentEntry
InternalEntityEntryforeignKey
IForeignKey
Returns
FindPrincipalUsingPreStoreGeneratedValues(InternalEntityEntry, IForeignKey)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
InternalEntityEntry? FindPrincipalUsingPreStoreGeneratedValues(InternalEntityEntry dependentEntry, IForeignKey foreignKey)
Parameters
dependentEntry
InternalEntityEntryforeignKey
IForeignKey
Returns
FindPrincipalUsingRelationshipSnapshot(InternalEntityEntry, IForeignKey)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
InternalEntityEntry? FindPrincipalUsingRelationshipSnapshot(InternalEntityEntry dependentEntry, IForeignKey foreignKey)
Parameters
dependentEntry
InternalEntityEntryforeignKey
IForeignKey
Returns
GetCountForState(bool, bool, bool, bool, bool)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
int GetCountForState(bool added = false, bool modified = false, bool deleted = false, bool unchanged = false, bool returnSharedIdentity = false)
Parameters
Returns
GetDependents(IUpdateEntry, IForeignKey)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
IEnumerable<IUpdateEntry> GetDependents(IUpdateEntry principalEntry, IForeignKey foreignKey)
Parameters
principalEntry
IUpdateEntryforeignKey
IForeignKey
Returns
GetDependents(IReadOnlyList<object>, IForeignKey)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
IEnumerable<IUpdateEntry> GetDependents(IReadOnlyList<object> keyValues, IForeignKey foreignKey)
Parameters
keyValues
IReadOnlyList<object>foreignKey
IForeignKey
Returns
GetDependentsFromNavigation(IUpdateEntry, IForeignKey)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
IEnumerable<IUpdateEntry>? GetDependentsFromNavigation(IUpdateEntry principalEntry, IForeignKey foreignKey)
Parameters
principalEntry
IUpdateEntryforeignKey
IForeignKey
Returns
GetDependentsUsingRelationshipSnapshot(IUpdateEntry, IForeignKey)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
IEnumerable<IUpdateEntry> GetDependentsUsingRelationshipSnapshot(IUpdateEntry principalEntry, IForeignKey foreignKey)
Parameters
principalEntry
IUpdateEntryforeignKey
IForeignKey
Returns
GetEntries(IKey)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
IEnumerable<InternalEntityEntry> GetEntries(IKey key)
Parameters
key
IKey
Returns
GetEntriesForState(bool, bool, bool, bool, bool)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
IEnumerable<InternalEntityEntry> GetEntriesForState(bool added = false, bool modified = false, bool deleted = false, bool unchanged = false, bool returnSharedIdentity = false)
Parameters
Returns
GetEntriesToSave(bool)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
IList<IUpdateEntry> GetEntriesToSave(bool cascadeChanges)
Parameters
cascadeChanges
bool
Returns
GetNonDeletedEntities<TEntity>()
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
IEnumerable<TEntity> GetNonDeletedEntities<TEntity>() where TEntity : class
Returns
- IEnumerable<TEntity>
Type Parameters
TEntity
GetOrCreateEntry(object)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
InternalEntityEntry GetOrCreateEntry(object entity)
Parameters
entity
object
Returns
GetOrCreateEntry(object, IEntityType?)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
InternalEntityEntry GetOrCreateEntry(object entity, IEntityType? entityType)
Parameters
entity
objectentityType
IEntityType
Returns
GetRecordedReferrers(object, bool)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
IEnumerable<Tuple<INavigationBase, InternalEntityEntry>> GetRecordedReferrers(object referencedEntity, bool clear)
Parameters
Returns
OnStateChanged(InternalEntityEntry, EntityState)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
void OnStateChanged(InternalEntityEntry internalEntityEntry, EntityState oldState)
Parameters
internalEntityEntry
InternalEntityEntryoldState
EntityState
OnStateChanging(InternalEntityEntry, EntityState)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
void OnStateChanging(InternalEntityEntry internalEntityEntry, EntityState newState)
Parameters
internalEntityEntry
InternalEntityEntrynewState
EntityState
OnTracked(InternalEntityEntry, bool)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
void OnTracked(InternalEntityEntry internalEntityEntry, bool fromQuery)
Parameters
internalEntityEntry
InternalEntityEntryfromQuery
bool
OnTracking(InternalEntityEntry, EntityState, bool)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
void OnTracking(InternalEntityEntry internalEntityEntry, EntityState state, bool fromQuery)
Parameters
internalEntityEntry
InternalEntityEntrystate
EntityStatefromQuery
bool
RecordReferencedUntrackedEntity(object, INavigationBase, InternalEntityEntry)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
void RecordReferencedUntrackedEntity(object referencedEntity, INavigationBase navigation, InternalEntityEntry referencedFromEntry)
Parameters
referencedEntity
objectnavigation
INavigationBasereferencedFromEntry
InternalEntityEntry
ResolveToExistingEntry(InternalEntityEntry, INavigationBase?, InternalEntityEntry?)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
bool ResolveToExistingEntry(InternalEntityEntry newEntry, INavigationBase? navigation, InternalEntityEntry? referencedFromEntry)
Parameters
newEntry
InternalEntityEntrynavigation
INavigationBasereferencedFromEntry
InternalEntityEntry
Returns
SaveChanges(bool)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
int SaveChanges(bool acceptAllChangesOnSuccess)
Parameters
acceptAllChangesOnSuccess
bool
Returns
SaveChangesAsync(bool, CancellationToken)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
Task<int> SaveChangesAsync(bool acceptAllChangesOnSuccess, CancellationToken cancellationToken = default)
Parameters
acceptAllChangesOnSuccess
boolcancellationToken
CancellationToken
Returns
SetEvents(EventHandler<EntityTrackingEventArgs>?, EventHandler<EntityTrackedEventArgs>?, EventHandler<EntityStateChangingEventArgs>?, EventHandler<EntityStateChangedEventArgs>?)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
void SetEvents(EventHandler<EntityTrackingEventArgs>? tracking, EventHandler<EntityTrackedEventArgs>? tracked, EventHandler<EntityStateChangingEventArgs>? stateChanging, EventHandler<EntityStateChangedEventArgs>? stateChanged)
Parameters
tracking
EventHandler<EntityTrackingEventArgs>tracked
EventHandler<EntityTrackedEventArgs>stateChanging
EventHandler<EntityStateChangingEventArgs>stateChanged
EventHandler<EntityStateChangedEventArgs>
StartTracking(InternalEntityEntry)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
InternalEntityEntry StartTracking(InternalEntityEntry entry)
Parameters
entry
InternalEntityEntry
Returns
StartTrackingFromQuery(IEntityType, object, in ValueBuffer)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
InternalEntityEntry StartTrackingFromQuery(IEntityType baseEntityType, object entity, in ValueBuffer valueBuffer)
Parameters
baseEntityType
IEntityTypeentity
objectvalueBuffer
ValueBuffer
Returns
StopTracking(InternalEntityEntry, EntityState)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
void StopTracking(InternalEntityEntry entry, EntityState oldState)
Parameters
entry
InternalEntityEntryoldState
EntityState
TryGetEntry(IKey, IReadOnlyList<object?>)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
InternalEntityEntry? TryGetEntry(IKey key, IReadOnlyList<object?> keyValues)
Parameters
key
IKeykeyValues
IReadOnlyList<object>
Returns
TryGetEntry(IKey, object?[], bool, out bool)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
InternalEntityEntry? TryGetEntry(IKey key, object?[] keyValues, bool throwOnNullKey, out bool hasNullKey)
Parameters
Returns
TryGetEntry(object, IEntityType, bool)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
InternalEntityEntry? TryGetEntry(object entity, IEntityType type, bool throwOnTypeMismatch = true)
Parameters
entity
objecttype
IEntityTypethrowOnTypeMismatch
bool
Returns
TryGetEntry(object, bool)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
InternalEntityEntry? TryGetEntry(object entity, bool throwOnNonUniqueness = true)
Parameters
Returns
TryGetEntryTyped<TKey>(IKey, TKey)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
InternalEntityEntry? TryGetEntryTyped<TKey>(IKey key, TKey keyValue)
Parameters
key
IKeykeyValue
TKey
Returns
Type Parameters
TKey
TryGetExistingEntry(object, IKey)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
InternalEntityEntry? TryGetExistingEntry(object entity, IKey key)
Parameters
Returns
Unsubscribe(bool)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
void Unsubscribe(bool resetting)
Parameters
resetting
bool
UpdateDependentMap(InternalEntityEntry, IForeignKey)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
void UpdateDependentMap(InternalEntityEntry entry, IForeignKey foreignKey)
Parameters
entry
InternalEntityEntryforeignKey
IForeignKey
UpdateIdentityMap(InternalEntityEntry, IKey)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
void UpdateIdentityMap(InternalEntityEntry entry, IKey principalKey)
Parameters
entry
InternalEntityEntryprincipalKey
IKey
UpdateReferencedUntrackedEntity(object, object, INavigationBase, InternalEntityEntry)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
void UpdateReferencedUntrackedEntity(object referencedEntity, object newReferencedEntity, INavigationBase navigation, InternalEntityEntry referencedFromEntry)
Parameters
referencedEntity
objectnewReferencedEntity
objectnavigation
INavigationBasereferencedFromEntry
InternalEntityEntry
Events
StateChanged
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
event EventHandler<EntityStateChangedEventArgs>? StateChanged
Event Type
StateChanging
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
event EventHandler<EntityStateChangingEventArgs>? StateChanging
Event Type
Tracked
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
event EventHandler<EntityTrackedEventArgs>? Tracked
Event Type
Tracking
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
event EventHandler<EntityTrackingEventArgs>? Tracking