Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DbPropertyEntry.Cast<TEntity, TProperty> Method

Entity Framework 5.0

Returns the equivalent generic DbPropertyEntry<TEntity, TProperty> object.

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

public DbPropertyEntry<TEntity, TProperty> Cast<TEntity, TProperty>()
where TEntity : class

Type Parameters


The type of entity on which the member is declared.


The type of the property.

Return Value

Type: System.Data.Entity.Infrastructure.DbPropertyEntry<TEntity, TProperty>
The equivalent generic object.
© 2015 Microsoft