ConventionsConfiguration.AddFromAssembly Method (Assembly)

 

Discover all conventions in the given assembly and add them to the DbModelBuilder.

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

public void AddFromAssembly(
	Assembly assembly
)

Parameters

assembly
Type: System.Reflection.Assembly

The assembly containing conventions to be added.

This method add all conventions ordered by type name. The order in which conventions are added can have an impact on how they behave because it governs the order in which they are run. All conventions found must have a parameterless public constructor.