Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DbModelBuilder Constructor

 

Initializes a new instance of the DbModelBuilder class.

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

NameDescription
System_CAPS_pubmethodDbModelBuilder()

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.

System_CAPS_pubmethodDbModelBuilder(DbModelBuilderVersion)

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

Return to top

DbModelBuilder Constructor ()

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()

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.

Return to top

DbModelBuilder Constructor (DbModelBuilderVersion)

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

public:
DbModelBuilder(
	DbModelBuilderVersion modelBuilderVersion
)

Parameters

modelBuilderVersion
Type: System.Data.Entity::DbModelBuilderVersion

The version of conventions to be used.

Return to top
Show: