DbModelBuilder.Properties Method

 

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

NameDescription
System_CAPS_pubmethodProperties()

Begins configuration of a lightweight convention that applies to all properties in the model.

System_CAPS_pubmethodProperties<T>()

Begins configuration of a lightweight convention that applies to all primitive properties of the specified type in the model.


DbModelBuilder.Properties Method ()

Begins configuration of a lightweight convention that applies to all properties in the model.

public PropertyConventionConfiguration Properties()

Return Value

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

A configuration object for the convention.


DbModelBuilder.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.PropertyConventionConfiguration

A 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.