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

DbEntityEntry<TEntity>.Member<TMember> Method (String)

Entity Framework 5.0

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<TEntity, TProperty>. Collection navigation property: DbCollectionEntry<TEntity, TElement>. Primitive/scalar property: DbPropertyEntry<TEntity, TProperty>. Complex property: DbComplexPropertyEntry<TEntity, TComplexProperty>.

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

public DbMemberEntry<TEntity, TMember> Member<TMember>(
	string propertyName

Type Parameters


The type of the member.


Type: System.String

The name of the member.

Return Value

Type: System.Data.Entity.Infrastructure.DbMemberEntry<TEntity, TMember>
An object representing the member.
© 2015 Microsoft