Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Build Method (DbProviderInfo)
Collapse the table of content
Expand the table of content

DbModelBuilder.Build Method (DbProviderInfo)

Entity Framework 5.0

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 (for example, '2005' or '2008'.)

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

public virtual DbModel Build(
	DbProviderInfo 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.
© 2015 Microsoft