DbModelBuilder DbModelBuilder DbModelBuilder Constructors

Definition

Overloads

DbModelBuilder() DbModelBuilder()

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.

DbModelBuilder(DbModelBuilderVersion) DbModelBuilder(DbModelBuilderVersion) DbModelBuilder(DbModelBuilderVersion)

Initializes a new instance of the DbModelBuilder class that will use a specific set of conventions to discover the initial model.

DbModelBuilder() DbModelBuilder()

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.

public DbModelBuilder ();
Public Sub New ()

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.

DbModelBuilder(DbModelBuilderVersion) DbModelBuilder(DbModelBuilderVersion) DbModelBuilder(DbModelBuilderVersion)

Initializes a new instance of the DbModelBuilder class that will use a specific set of conventions to discover the initial model.

public DbModelBuilder (System.Data.Entity.DbModelBuilderVersion modelBuilderVersion);
new System.Data.Entity.DbModelBuilder : System.Data.Entity.DbModelBuilderVersion -> System.Data.Entity.DbModelBuilder
Public Sub New (modelBuilderVersion As DbModelBuilderVersion)

Parameters

modelBuilderVersion
DbModelBuilderVersion DbModelBuilderVersion DbModelBuilderVersion

The version of conventions to be used.

Applies to