Share via


DbModelBuilder.Types Method

Definition

Overloads

Types()

Begins configuration of a lightweight convention that applies to all entities and complex types in the model.

Types<T>()

Begins configuration of a lightweight convention that applies to all entities and complex types in the model that inherit from or implement the type specified by the generic argument. This method does not register types as part of the model.

Types()

Begins configuration of a lightweight convention that applies to all entities and complex types in the model.

public System.Data.Entity.ModelConfiguration.Configuration.TypeConventionConfiguration Types ();
member this.Types : unit -> System.Data.Entity.ModelConfiguration.Configuration.TypeConventionConfiguration
Public Function Types () As TypeConventionConfiguration

Returns

A configuration object for the convention.

Applies to

Types<T>()

Begins configuration of a lightweight convention that applies to all entities and complex types in the model that inherit from or implement the type specified by the generic argument. This method does not register types as part of the model.

public System.Data.Entity.ModelConfiguration.Configuration.TypeConventionConfiguration<T> Types<T> () where T : class;
member this.Types : unit -> System.Data.Entity.ModelConfiguration.Configuration.TypeConventionConfiguration<'T (requires 'T : null)> (requires 'T : null)
Public Function Types(Of T As Class) () As TypeConventionConfiguration(Of T)

Type Parameters

T

The type of the entities or complex types that this convention will apply to.

Returns

A configuration object for the convention.

Applies to