Export (0) Print
Expand All

DbEntityEntry Methods

Entity Framework 5.0

The DbEntityEntry type exposes the following members.

  Name Description
Public method Cast<TEntity> Returns a new instance of the generic DbEntityEntry<TEntity> class for the given generic type for the tracked entity represented by this object. The type of the tracked entity must be compatible with the generic type or an exception will be thrown.
Public method Collection Gets an object that represents the collection navigation property from this entity to a collection of related entities.
Public method ComplexProperty Gets an object that represents a complex property of this entity.
Public method Equals(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).)
Public method Equals(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.
Protected method Finalize (Inherited from Object.)
Public method GetDatabaseValues Queries the database for copies of the values of the tracked entity as they currently exist in the database. 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.
Public method GetHashCode Returns a hash code for this instance. (Overrides Object.GetHashCode().)
Public method GetType Gets the type for the current database entity entry.
Public method GetValidationResult Validates this DbEntityEntry instance and returns validation result.
Public method Member 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) and Complex property ( DbComplexPropertyEntry).
Protected method MemberwiseClone (Inherited from Object.)
Public method Property Gets an object that represents a scalar or complex property of this entity.
Public method Reference Gets an object that represents the reference (i.e. non-collection) navigation property from this entity to another entity.
Public method Reload 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.
Public method ToString Returns a string representation of the database entity entry. (Overrides Object.ToString().)
Top
Show:
© 2015 Microsoft