Share via


ConventionsConfiguration.AddFromAssembly(Assembly) Method

Definition

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

public void AddFromAssembly (System.Reflection.Assembly assembly);
member this.AddFromAssembly : System.Reflection.Assembly -> unit

Parameters

assembly
Assembly

The assembly containing conventions to be added.

Remarks

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.

Applies to