DbModelBuilder.Build Method

Definition

Overloads

Build(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.

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

Build(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 System.Data.Entity.Infrastructure.DbModel Build (System.Data.Common.DbConnection providerConnection);
abstract member Build : System.Data.Common.DbConnection -> System.Data.Entity.Infrastructure.DbModel
override this.Build : System.Data.Common.DbConnection -> System.Data.Entity.Infrastructure.DbModel
Public Overridable Function Build (providerConnection As DbConnection) As DbModel

Parameters

providerConnection
DbConnection

Connection to use to determine provider information.

Returns

The model that was built.

Build(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 System.Data.Entity.Infrastructure.DbModel Build (System.Data.Entity.Infrastructure.DbProviderInfo providerInfo);
abstract member Build : System.Data.Entity.Infrastructure.DbProviderInfo -> System.Data.Entity.Infrastructure.DbModel
override this.Build : System.Data.Entity.Infrastructure.DbProviderInfo -> System.Data.Entity.Infrastructure.DbModel
Public Overridable Function Build (providerInfo As DbProviderInfo) As DbModel

Parameters

providerInfo
DbProviderInfo

The database provider that the model will be used with.

Returns

The model that was built.

Applies to