ConventionsConfiguration.Add Method

 

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

NameDescription
System_CAPS_pubmethodAdd(IConvention[])

Enables one or more conventions for the DbModelBuilder.

System_CAPS_pubmethodAdd<TConvention>()

Enables a convention for the DbModelBuilder.


ConventionsConfiguration.Add Method (IConvention[])

Enables one or more conventions for the DbModelBuilder.

public void Add(
	params IConvention[] conventions
)

Parameters

conventions
Type: System.Data.Entity.ModelConfiguration.Conventions.IConvention[]

The conventions to be enabled.


ConventionsConfiguration.Add<TConvention> Method ()

Enables a convention for the DbModelBuilder.

[SuppressMessageAttribute("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter")]
public void Add<TConvention>()
where TConvention : new(), IConvention

Type Parameters

TConvention

The type of the convention to be enabled.