ConventionTypeConfiguration<T>.Property<TProperty> Method (Expression<Func<T, TProperty>>)

 

Configures a property that is defined on this type.

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

[SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
public ConventionPrimitivePropertyConfiguration Property<TProperty>(
	Expression<Func<T, TProperty>> propertyExpression
)

Parameters

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

A lambda expression representing the property to be configured. C#: t =&gt; t.MyProperty VB.Net: Function(t) t.MyProperty

Return Value

Type: System.Data.Entity.ModelConfiguration.Configuration.ConventionPrimitivePropertyConfiguration

A configuration object that can be used to configure the property.

Type Parameters

TProperty

The type of the property being configured.