StateManager StateManager Class

Definition

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public class StateManager : IStateManager
Public Class StateManager
    Implements IStateManager
Inheritance
System.ObjectSystem.Object
StateManagerStateManager
Implements

Constructors

StateManager(IInternalEntityEntryFactory, IInternalEntityEntrySubscriber, IInternalEntityEntryNotifier, IValueGenerationManager, IModel, IDatabase, IConcurrencyDetector, ICurrentDbContext) StateManager(IInternalEntityEntryFactory, IInternalEntityEntrySubscriber, IInternalEntityEntryNotifier, IValueGenerationManager, IModel, IDatabase, IConcurrencyDetector, ICurrentDbContext)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public StateManager(IInternalEntityEntryFactory factory, IInternalEntityEntrySubscriber subscriber, IInternalEntityEntryNotifier notifier, IValueGenerationManager valueGeneration, IModel model, IDatabase database, IConcurrencyDetector concurrencyDetector, ICurrentDbContext currentContext)
Public Sub New(factory As IInternalEntityEntryFactory, subscriber As IInternalEntityEntrySubscriber, notifier As IInternalEntityEntryNotifier, valueGeneration As IValueGenerationManager, model As IModel, database As IDatabase, concurrencyDetector As IConcurrencyDetector, currentContext As ICurrentDbContext)
Parameters
model
IModel IModel
database
IDatabase IDatabase

Properties

ChangedCount ChangedCount

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual int ChangedCount { get; set; }
Public Overridable Property ChangedCount As Integer
Value
System.Int32 System.Int32

Context Context

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual DbContext Context { get; }
Public Overridable ReadOnly Property Context As DbContext

Entries Entries

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual IEnumerable<InternalEntityEntry> Entries { get; }
Public Overridable ReadOnly Property Entries As IEnumerable(Of InternalEntityEntry)
Value
System.Collections.Generic.IEnumerable<InternalEntityEntry> System.Collections.Generic.IEnumerable(Of InternalEntityEntry)

Notify Notify

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual IInternalEntityEntryNotifier Notify { get; }
Public Overridable ReadOnly Property Notify As IInternalEntityEntryNotifier

ValueGeneration ValueGeneration

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual IValueGenerationManager ValueGeneration { get; }
Public Overridable ReadOnly Property ValueGeneration As IValueGenerationManager

Methods

AcceptAllChanges() AcceptAllChanges()

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual void AcceptAllChanges()
Public Overridable Sub AcceptAllChanges

BeginTrackingQuery() BeginTrackingQuery()

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual void BeginTrackingQuery()
Public Overridable Sub BeginTrackingQuery

EndSingleQueryMode() EndSingleQueryMode()

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual void EndSingleQueryMode()
Public Overridable Sub

Equals(Object) Equals(Object)

Inherited from System.Object

Equals(Object, Object) Equals(Object, Object)

Inherited from System.Object

GetDependents(InternalEntityEntry, IForeignKey) GetDependents(InternalEntityEntry, IForeignKey)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual IEnumerable<InternalEntityEntry> GetDependents(InternalEntityEntry principalEntry, IForeignKey foreignKey)
Public Overridable Function GetDependents(principalEntry As InternalEntityEntry, foreignKey As IForeignKey) As IEnumerable(Of InternalEntityEntry)
Parameters
Returns
System.Collections.Generic.IEnumerable<InternalEntityEntry> System.Collections.Generic.IEnumerable(Of InternalEntityEntry)

GetDependentsFromNavigation(InternalEntityEntry, IForeignKey) GetDependentsFromNavigation(InternalEntityEntry, IForeignKey)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual IEnumerable<InternalEntityEntry> GetDependentsFromNavigation(InternalEntityEntry principalEntry, IForeignKey foreignKey)
Public Overridable Function GetDependentsFromNavigation(principalEntry As InternalEntityEntry, foreignKey As IForeignKey) As IEnumerable(Of InternalEntityEntry)
Parameters
Returns
System.Collections.Generic.IEnumerable<InternalEntityEntry> System.Collections.Generic.IEnumerable(Of InternalEntityEntry)

GetDependentsUsingRelationshipSnapshot(InternalEntityEntry, IForeignKey) GetDependentsUsingRelationshipSnapshot(InternalEntityEntry, IForeignKey)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual IEnumerable<InternalEntityEntry> GetDependentsUsingRelationshipSnapshot(InternalEntityEntry principalEntry, IForeignKey foreignKey)
Public Overridable Function GetDependentsUsingRelationshipSnapshot(principalEntry As InternalEntityEntry, foreignKey As IForeignKey) As IEnumerable(Of InternalEntityEntry)
Parameters
Returns
System.Collections.Generic.IEnumerable<InternalEntityEntry> System.Collections.Generic.IEnumerable(Of InternalEntityEntry)

GetHashCode() GetHashCode()

Inherited from System.Object

GetOrCreateEntry(Object) GetOrCreateEntry(Object)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual InternalEntityEntry GetOrCreateEntry(object entity)
Public Overridable Function GetOrCreateEntry(entity As Object) As InternalEntityEntry
Parameters
entity
System.Object System.Object
Returns

GetPrincipal(InternalEntityEntry, IForeignKey) GetPrincipal(InternalEntityEntry, IForeignKey)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual InternalEntityEntry GetPrincipal(InternalEntityEntry dependentEntry, IForeignKey foreignKey)
Public Overridable Function GetPrincipal(dependentEntry As InternalEntityEntry, foreignKey As IForeignKey) As InternalEntityEntry
Parameters
Returns

GetPrincipalUsingPreStoreGeneratedValues(InternalEntityEntry, IForeignKey) GetPrincipalUsingPreStoreGeneratedValues(InternalEntityEntry, IForeignKey)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual InternalEntityEntry GetPrincipalUsingPreStoreGeneratedValues(InternalEntityEntry dependentEntry, IForeignKey foreignKey)
Public Overridable Function GetPrincipalUsingPreStoreGeneratedValues(dependentEntry As InternalEntityEntry, foreignKey As IForeignKey) As InternalEntityEntry
Parameters
Returns

GetPrincipalUsingRelationshipSnapshot(InternalEntityEntry, IForeignKey) GetPrincipalUsingRelationshipSnapshot(InternalEntityEntry, IForeignKey)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual InternalEntityEntry GetPrincipalUsingRelationshipSnapshot(InternalEntityEntry dependentEntry, IForeignKey foreignKey)
Public Overridable Function GetPrincipalUsingRelationshipSnapshot(dependentEntry As InternalEntityEntry, foreignKey As IForeignKey) As InternalEntityEntry
Parameters
Returns

GetRecordedReferers(Object, Boolean) GetRecordedReferers(Object, Boolean)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual IEnumerable<Tuple<INavigation, InternalEntityEntry>> GetRecordedReferers(object referencedEntity, bool clear)
Public Overridable Function GetRecordedReferers(referencedEntity As Object, clear As Boolean) As IEnumerable(Of Tuple(Of INavigation, InternalEntityEntry))
Parameters
referencedEntity
System.Object System.Object
clear
System.Boolean System.Boolean
Returns
System.Collections.Generic.IEnumerable<System.Tuple<INavigation, InternalEntityEntry>> System.Collections.Generic.IEnumerable(Of System.Tuple(Of INavigation, InternalEntityEntry))

GetTrackingQueryMode(IEntityType) GetTrackingQueryMode(IEntityType)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual TrackingQueryMode GetTrackingQueryMode(IEntityType entityType)
Public Overridable Function GetTrackingQueryMode(entityType As IEntityType) As TrackingQueryMode
Parameters
Returns

GetType() GetType()

Inherited from System.Object

MemberwiseClone() MemberwiseClone()

Inherited from System.Object

RecordReferencedUntrackedEntity(Object, INavigation, InternalEntityEntry) RecordReferencedUntrackedEntity(Object, INavigation, InternalEntityEntry)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual void RecordReferencedUntrackedEntity(object referencedEntity, INavigation navigation, InternalEntityEntry referencedFromEntry)
Public Overridable Sub RecordReferencedUntrackedEntity(referencedEntity As Object, navigation As INavigation, referencedFromEntry As InternalEntityEntry)
Parameters
referencedEntity
System.Object System.Object

ReferenceEquals(Object, Object) ReferenceEquals(Object, Object)

Inherited from System.Object

SaveChanges(Boolean) SaveChanges(Boolean)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual int SaveChanges(bool acceptAllChangesOnSuccess)
Public Overridable Function SaveChanges(acceptAllChangesOnSuccess As Boolean) As Integer
Parameters
acceptAllChangesOnSuccess
System.Boolean System.Boolean
Returns
System.Int32 System.Int32

SaveChanges(IReadOnlyList) SaveChanges(IReadOnlyList(Of InternalEntityEntry))

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

protected virtual int SaveChanges(IReadOnlyList<InternalEntityEntry> entriesToSave)
Protected Overridable Function SaveChanges(entriesToSave As IReadOnlyList(Of InternalEntityEntry)) As Integer
Parameters
entriesToSave
System.Collections.Generic.IReadOnlyList<InternalEntityEntry> System.Collections.Generic.IReadOnlyList(Of InternalEntityEntry)
Returns
System.Int32 System.Int32

SaveChangesAsync(Boolean, CancellationToken) SaveChangesAsync(Boolean, CancellationToken)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual Task<int> SaveChangesAsync(bool acceptAllChangesOnSuccess, CancellationToken cancellationToken = null)
Public Overridable Function SaveChangesAsync(acceptAllChangesOnSuccess As Boolean, cancellationToken As CancellationToken = Nothing) As Task(Of Integer)
Parameters
acceptAllChangesOnSuccess
System.Boolean System.Boolean
cancellationToken
System.Threading.CancellationToken System.Threading.CancellationToken
Returns
System.Threading.Tasks.Task<System.Int32> System.Threading.Tasks.Task(Of System.Int32)

SaveChangesAsync(IReadOnlyList, CancellationToken) SaveChangesAsync(IReadOnlyList(Of InternalEntityEntry), CancellationToken)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

protected virtual Task<int> SaveChangesAsync(IReadOnlyList<InternalEntityEntry> entriesToSave, CancellationToken cancellationToken = null)
Protected Overridable Function SaveChangesAsync(entriesToSave As IReadOnlyList(Of InternalEntityEntry), cancellationToken As CancellationToken = Nothing) As Task(Of Integer)
Parameters
entriesToSave
System.Collections.Generic.IReadOnlyList<InternalEntityEntry> System.Collections.Generic.IReadOnlyList(Of InternalEntityEntry)
cancellationToken
System.Threading.CancellationToken System.Threading.CancellationToken
Returns
System.Threading.Tasks.Task<System.Int32> System.Threading.Tasks.Task(Of System.Int32)

StartTracking(InternalEntityEntry) StartTracking(InternalEntityEntry)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual InternalEntityEntry StartTracking(InternalEntityEntry entry)
Public Overridable Function StartTracking(entry As InternalEntityEntry) As InternalEntityEntry
Parameters
Returns

StartTrackingFromQuery(IEntityType, Object, ValueBuffer, ISet) StartTrackingFromQuery(IEntityType, Object, ValueBuffer, ISet(Of IForeignKey))

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual InternalEntityEntry StartTrackingFromQuery(IEntityType baseEntityType, object entity, ValueBuffer valueBuffer, ISet<IForeignKey> handledForeignKeys)
Public Overridable Function StartTrackingFromQuery(baseEntityType As IEntityType, entity As Object, valueBuffer As ValueBuffer, handledForeignKeys As ISet(Of IForeignKey)) As InternalEntityEntry
Parameters
baseEntityType
IEntityType IEntityType
entity
System.Object System.Object
valueBuffer
ValueBuffer ValueBuffer
handledForeignKeys
ISet<IForeignKey> ISet(Of IForeignKey)
Returns

StopTracking(InternalEntityEntry) StopTracking(InternalEntityEntry)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual void StopTracking(InternalEntityEntry entry)
Public Overridable Sub StopTracking(entry As InternalEntityEntry)
Parameters

ToString() ToString()

Inherited from System.Object

TryGetEntry(IKey, Object[]) TryGetEntry(IKey, Object())

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual InternalEntityEntry TryGetEntry(IKey key, object[] keyValues)
Public Overridable Function TryGetEntry(key As IKey, keyValues As Object()) As InternalEntityEntry
Parameters
key
IKey IKey
keyValues
System.Object[] System.Object()
Returns

TryGetEntry(IKey, ValueBuffer, Boolean) TryGetEntry(IKey, ValueBuffer, Boolean)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual InternalEntityEntry TryGetEntry(IKey key, ValueBuffer valueBuffer, bool throwOnNullKey)
Public Overridable Function TryGetEntry(key As IKey, valueBuffer As ValueBuffer, throwOnNullKey As Boolean) As InternalEntityEntry
Parameters
key
IKey IKey
valueBuffer
ValueBuffer ValueBuffer
throwOnNullKey
System.Boolean System.Boolean
Returns

TryGetEntry(Object) TryGetEntry(Object)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual InternalEntityEntry TryGetEntry(object entity)
Public Overridable Function TryGetEntry(entity As Object) As InternalEntityEntry
Parameters
entity
System.Object System.Object
Returns

Unsubscribe() Unsubscribe()

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual void Unsubscribe()
Public Overridable Sub Unsubscribe

UpdateDependentMap(InternalEntityEntry, IForeignKey) UpdateDependentMap(InternalEntityEntry, IForeignKey)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual void UpdateDependentMap(InternalEntityEntry entry, IForeignKey foreignKey)
Public Overridable Sub UpdateDependentMap(entry As InternalEntityEntry, foreignKey As IForeignKey)
Parameters

UpdateIdentityMap(InternalEntityEntry, IKey) UpdateIdentityMap(InternalEntityEntry, IKey)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual void UpdateIdentityMap(InternalEntityEntry entry, IKey key)
Public Overridable Sub UpdateIdentityMap(entry As InternalEntityEntry, key As IKey)
Parameters
key
IKey IKey