DbModelBuilder.Properties DbModelBuilder.Properties DbModelBuilder.Properties Method

Definition

Overloads

Properties() Properties() Properties()

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

Properties<T>() Properties<T>() Properties<T>()

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

Properties() Properties() 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

Properties<T>() Properties<T>() 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

Remarks

The convention will apply to both nullable and non-nullable properties of the

specified type.

Applies to