IUpdateAdapter Interface

Definition

Providers tracking capabilities for seed data stored in the model using HasData(Object[]).

This interface is typically used by database providers (and other extensions). It is generally not used in application code.

public interface IUpdateAdapter
type IUpdateAdapter = interface
Public Interface IUpdateAdapter

Remarks

See Implementation of database providers and extensions for more information and examples.

Properties

CascadeDeleteTiming

Gets or sets a value indicating when a dependent/child entity will have its state set to Deleted once its parent/principal entity has been marked as Deleted. The default value isImmediate.

DeleteOrphansTiming

Gets or sets a value indicating when a dependent/child entity will have its state set to Deleted once severed from a parent/principal entity through either a navigation or foreign key property being set to null. The default value is Immediate.

Entries

All the entries currently being tracked.

Model

The model with which the data is associated.

Methods

CascadeChanges()

Forces immediate cascading deletion of child/dependent entities when they are either severed from a required parent/principal entity, or the required parent/principal entity is itself deleted. See DeleteBehavior.

CascadeDelete(IUpdateEntry, IEnumerable<IForeignKey>)

Forces immediate cascading deletion of child/dependent entities when they are either severed from a required parent/principal entity, or the required parent/principal entity is itself deleted. See DeleteBehavior.

CreateEntry(IDictionary<String,Object>, IEntityType)

Creates a new entry with the given property values for the given entity type.

DetectChanges()

Causes the underlying tracker to detect changes made to the tracked entities.

FindPrincipal(IUpdateEntry, IForeignKey)

Gets the principal entry for the given dependent entry and foreign key.

GetDependents(IUpdateEntry, IForeignKey)

Returns the dependents associated with the given principal and foreign key.

GetEntriesToSave()

Gets all the entries that require inserts/updates/deletes in the database.

TryGetEntry(IKey, Object[])

Finds the tracked entity for the given key values.

Applies to