Share via


ConventionTypeConfiguration<T>.Property<TProperty> Method

Definition

Configures a property that is defined on this type.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
public System.Data.Entity.ModelConfiguration.Configuration.ConventionPrimitivePropertyConfiguration Property<TProperty> (System.Linq.Expressions.Expression<Func<T,TProperty>> propertyExpression);
member this.Property : System.Linq.Expressions.Expression<Func<'T, 'Property>> -> System.Data.Entity.ModelConfiguration.Configuration.ConventionPrimitivePropertyConfiguration
Public Function Property(Of TProperty) (propertyExpression As Expression(Of Func(Of T, TProperty))) As ConventionPrimitivePropertyConfiguration

Type Parameters

TProperty

The type of the property being configured.

Parameters

propertyExpression
Expression<Func<T,TProperty>>

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

Returns

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

Attributes

Applies to