DbModelBuilder.Build Method

 

Creates a DbModel based on the configuration performed using this builder.

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

NameDescription
System_CAPS_pubmethodBuild(DbConnection)

Creates a DbModel based on the configuration performed using this builder. The connection is used to determine the database provider being used as this affects the database layer of the generated model.

System_CAPS_pubmethodBuild(DbProviderInfo)

Creates a DbModel based on the configuration performed using this builder. Provider information must be specified because this affects the database layer of the generated model. For SqlClient the invariant name is 'System.Data.SqlClient' and the manifest token is the version year (i.e. '2005', '2008' etc.)


DbModelBuilder.Build Method (DbConnection)

Creates a DbModel based on the configuration performed using this builder. The connection is used to determine the database provider being used as this affects the database layer of the generated model.

public virtual DbModel Build(
	DbConnection providerConnection
)

Parameters

providerConnection
Type: System.Data.Common.DbConnection

Connection to use to determine provider information.

Return Value

Type: System.Data.Entity.Infrastructure.DbModel

The model that was built.


DbModelBuilder.Build Method (DbProviderInfo)

Creates a DbModel based on the configuration performed using this builder. Provider information must be specified because this affects the database layer of the generated model. For SqlClient the invariant name is 'System.Data.SqlClient' and the manifest token is the version year (i.e. '2005', '2008' etc.)

public virtual DbModel Build(
	DbProviderInfo providerInfo
)

Parameters

providerInfo
Type: System.Data.Entity.Infrastructure.DbProviderInfo

The database provider that the model will be used with.

Return Value

Type: System.Data.Entity.Infrastructure.DbModel

The model that was built.