DbModelBuilder.Build Method
Creates a DbModel based on the configuration performed using this builder.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | 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.) |
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.
Parameters
- providerConnection
-
Type:
System.Data.Common.DbConnection
Connection to use to determine provider information.
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.)
Parameters
- providerInfo
-
Type:
System.Data.Entity.Infrastructure.DbProviderInfo
The database provider that the model will be used with.