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>.Property<TProperty> Method (Expression<Func<TEntity, TProperty>>)

Entity Framework 5.0

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

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

public DbPropertyEntry<TEntity, TProperty> Property<TProperty>(
	Expression<Func<TEntity, TProperty>> property

Type Parameters


The type of the property.


Type: System.Linq.Expressions.Expression<Func<TEntity, TProperty>>

The property.

Return Value

Type: System.Data.Entity.Infrastructure.DbPropertyEntry<TEntity, TProperty>
An object representing the property.
© 2015 Microsoft