Convention.Properties Method
Namespace:
System.Data.Entity.ModelConfiguration.Conventions
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | Properties() | Begins configuration of a lightweight convention that applies to all properties in the model. |
![]() | Properties<T>() | Begins configuration of a lightweight convention that applies to all primitive properties of the specified type in the model. |
Convention.Properties Method ()
Begins configuration of a lightweight convention that applies to all properties in the model.
Return Value
Type: System.Data.Entity.ModelConfiguration.Configuration.PropertyConventionConfigurationA configuration object for the convention.
Convention.Properties<T> Method ()
Begins configuration of a lightweight convention that applies to all primitive properties of the specified type in the model.
[SuppressMessageAttribute("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter")] public PropertyConventionConfiguration Properties<T>()
Return Value
Type: System.Data.Entity.ModelConfiguration.Configuration.PropertyConventionConfigurationA configuration object for the convention.
Type Parameters
- T
The type of the properties that the convention will apply to.
The convention will apply to both nullable and non-nullable properties of the specified type.