DbModelBuilder Constructor

[This page is specific to the Entity Framework version 6. The latest version is available as the 'Entity Framework' NuGet package. For more information about Entity Framework, see msdn.com/data/ef.]

Initializes a new instance of the DbModelBuilder class. The process of discovering the initial model will use the set of conventions included in the most recent version of the Entity Framework installed on your machine.

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

Syntax

'Declaration
Public Sub New
'Usage
Dim instance As New DbModelBuilder()
public DbModelBuilder()
public:
DbModelBuilder()
new : unit -> DbModelBuilder
public function DbModelBuilder()

Remarks

Upgrading to newer versions of the Entity Framework may cause breaking changes in your application because new conventions may cause the initial model to be configured differently. There is an alternate constructor that allows a specific version of conventions to be specified.

See Also

Reference

DbModelBuilder Class

DbModelBuilder Overload

System.Data.Entity Namespace