ConventionsConfiguration.AddFromAssembly(Assembly) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Entity Framework