Convention.Types Method

 

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

NameDescription
System_CAPS_pubmethodTypes()

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

System_CAPS_pubmethodTypes<T>()

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


Convention.Types Method ()

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

public TypeConventionConfiguration Types()

Return Value

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

A configuration object for the convention.


Convention.Types<T> Method ()

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

public TypeConventionConfiguration<T> Types<T>()
where T : class

Return Value

Type: System.Data.Entity.ModelConfiguration.Configuration.TypeConventionConfiguration<T>

A configuration object for the convention.

Type Parameters

T

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

This method does not add new types to the model.