Convention.Types Method

Definition

Overloads

Types()

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

Types<T>()

Begins configuration of a lightweight convention that applies to all mapped types in the model that derive from or implement the specified type.

Types()

Begins configuration of a lightweight convention that applies to all mapped 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 mapped types in the model that derive from or implement the specified type.

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 that this convention will apply to.

Returns

A configuration object for the convention.

Remarks

This method does not add new types to the model.

Applies to