Convention.Properties 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.
Overloads
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. |
Properties()
Begins configuration of a lightweight convention that applies to all properties in the model.
public System.Data.Entity.ModelConfiguration.Configuration.PropertyConventionConfiguration Properties ();
member this.Properties : unit -> System.Data.Entity.ModelConfiguration.Configuration.PropertyConventionConfiguration
Public Function Properties () As PropertyConventionConfiguration
Returns
A configuration object for the convention.
Applies to
Properties<T>()
Begins configuration of a lightweight convention that applies to all primitive properties of the specified type in the model.
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter")]
public System.Data.Entity.ModelConfiguration.Configuration.PropertyConventionConfiguration Properties<T> ();
member this.Properties : unit -> System.Data.Entity.ModelConfiguration.Configuration.PropertyConventionConfiguration
Public Function Properties(Of T) () As PropertyConventionConfiguration
Type Parameters
- T
The type of the properties that the convention will apply to.
Returns
A configuration object for the convention.
- Attributes
Remarks
The convention will apply to both nullable and non-nullable properties of the specified type.
Applies to
Entity Framework