StructuralTypeConfiguration<TStructuralType>.Property<T> Method (Expression<Func<TStructuralType, T>>)

Entity Framework 5.0

Configures a struct property that is defined on this type.

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

public PrimitivePropertyConfiguration Property<T>(
	Expression<Func<TStructuralType, T>> propertyExpression
)
where T : struct, new()

Type Parameters

T

The type of the property being configured.

Parameters

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

A lambda expression representing the property to be configured. For example, in C# t => t.MyProperty and in Visual Basic .NET Function(t) t.MyProperty.

Return Value

Type: System.Data.Entity.ModelConfiguration.Configuration.PrimitivePropertyConfiguration
A configuration object that can be used to configure the property.
Show: