ConventionTypeConfiguration.Property Method

 

Configures a property that is defined on this type.

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

NameDescription
System_CAPS_pubmethodProperty(PropertyInfo)

Configures a property that is defined on this type.

System_CAPS_pubmethodProperty(String)

Configures a property that is defined on this type.


ConventionTypeConfiguration.Property Method (PropertyInfo)

Configures a property that is defined on this type.

public ConventionPrimitivePropertyConfiguration Property(
	PropertyInfo propertyInfo
)

Parameters

propertyInfo
Type: System.Reflection.PropertyInfo

The property being configured.

Return Value

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

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


ConventionTypeConfiguration.Property Method (String)

Configures a property that is defined on this type.

public ConventionPrimitivePropertyConfiguration Property(
	string propertyName
)

Parameters

propertyName
Type: System.String

The name of the property being configured.

Return Value

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

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