IUpdateEntry IUpdateEntry Interface

Definition

The information passed to a database provider to save changes to an entity to the database.

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

public interface IUpdateEntry
Public Interface IUpdateEntry

Properties

EntityState EntityState

The state of the entity to be saved.

EntityType EntityType

The type of entity to be saved to the database.

Methods

GetCurrentValue(IPropertyBase) GetCurrentValue(IPropertyBase)

Gets the value assigned to the property.

GetCurrentValue<TProperty>(IPropertyBase) GetCurrentValue(Of TProperty)(IPropertyBase)

Gets the value assigned to the property.

GetOriginalValue(IPropertyBase) GetOriginalValue(IPropertyBase)

Gets the value assigned to the property when it was retrieved from the database.

GetOriginalValue<TProperty>(IProperty) GetOriginalValue(Of TProperty)(IProperty)

Gets the value assigned to the property when it was retrieved from the database.

HasTemporaryValue(IProperty) HasTemporaryValue(IProperty)

Gets a value indicating if the specified property has a temporary value.

IsModified(IProperty) IsModified(IProperty)

Gets a value indicating if the specified property is modified. If true, the current value assigned to the property should be saved to the database.

IsStoreGenerated(IProperty) IsStoreGenerated(IProperty)

Gets a value indicating if the specified property should have a value generated by the database.

SetCurrentValue(IPropertyBase, Object) SetCurrentValue(IPropertyBase, Object)

Gets the value assigned to the property.

ToEntityEntry() ToEntityEntry()

Gets an EntityEntry for the entity being saved. EntityEntry is an API optimized for application developers and IUpdateEntry is optimized for database providers, but there may be instances where a database provider wants to access information from EntityEntry.