DbEntityEntry Class

 

A non-generic version of the DbEntityEntry<TEntity> class.

Namespace:   System.Data.Entity.Infrastructure
Assembly:  EntityFramework (in EntityFramework.dll)

System.Object
  System.Data.Entity.Infrastructure.DbEntityEntry

public class DbEntityEntry

NameDescription
System_CAPS_pubpropertyCurrentValues

Gets the current property values for the tracked entity represented by this object.

System_CAPS_pubpropertyEntity

Gets the entity.

System_CAPS_pubpropertyOriginalValues

Gets the original property values for the tracked entity represented by this object. The original values are usually the entity's property values as they were when last queried from the database.

System_CAPS_pubpropertyState

Gets or sets the state of the entity.

NameDescription
System_CAPS_pubmethodCast<TEntity>()

Returns a new instance of the generic DbEntityEntry<TEntity> class for the given generic type for the tracked entity represented by this object. Note that the type of the tracked entity must be compatible with the generic type or an exception will be thrown.

System_CAPS_pubmethodCollection(String)

Gets an object that represents the collection navigation property from this entity to a collection of related entities.

System_CAPS_pubmethodComplexProperty(String)

Gets an object that represents a complex property of this entity.

System_CAPS_pubmethodEquals(DbEntityEntry)

Determines whether the specified DbEntityEntry is equal to this instance. Two DbEntityEntry instances are considered equal if they are both entries for the same entity on the same DbContext.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified Object is equal to this instance. Two DbEntityEntry instances are considered equal if they are both entries for the same entity on the same DbContext.(Overrides Object.Equals(Object).)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetDatabaseValues()

Queries the database for copies of the values of the tracked entity as they currently exist in the database. Note that changing the values in the returned dictionary will not update the values in the database. If the entity is not found in the database then null is returned.

System_CAPS_pubmethodGetDatabaseValuesAsync()

Asynchronously queries the database for copies of the values of the tracked entity as they currently exist in the database. Note that changing the values in the returned dictionary will not update the values in the database. If the entity is not found in the database then null is returned.

System_CAPS_pubmethodGetDatabaseValuesAsync(CancellationToken)

Asynchronously queries the database for copies of the values of the tracked entity as they currently exist in the database. Note that changing the values in the returned dictionary will not update the values in the database. If the entity is not found in the database then null is returned.

System_CAPS_pubmethodGetHashCode()

Returns a hash code for this instance.(Overrides Object.GetHashCode().)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.

System_CAPS_pubmethodGetValidationResult()

Validates this DbEntityEntry instance and returns validation result.

System_CAPS_pubmethodMember(String)

Gets an object that represents a member of the entity. The runtime type of the returned object will vary depending on what kind of member is asked for. The currently supported member types and their return types are: Reference navigation property: DbReferenceEntry. Collection navigation property: DbCollectionEntry. Primitive/scalar property: DbPropertyEntry. Complex property: DbComplexPropertyEntry.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodProperty(String)

Gets an object that represents a scalar or complex property of this entity.

System_CAPS_pubmethodReference(String)

Gets an object that represents the reference (i.e. non-collection) navigation property from this entity to another entity.

System_CAPS_pubmethodReload()

Reloads the entity from the database overwriting any property values with values from the database. The entity will be in the Unchanged state after calling this method.

System_CAPS_pubmethodReloadAsync()

Asynchronously reloads the entity from the database overwriting any property values with values from the database. The entity will be in the Unchanged state after calling this method.

System_CAPS_pubmethodReloadAsync(CancellationToken)

Asynchronously reloads the entity from the database overwriting any property values with values from the database. The entity will be in the Unchanged state after calling this method.

System_CAPS_pubmethodToString()

Returns a sting representation of the DbEntityEntry.(Overrides Object.ToString().)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.