ConventionTypeConfiguration<T>.Property<TProperty> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework