DbModelBuilder 建構函式 (DbModelBuilderVersion)
[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]
初始化 DbModelBuilder 類別的新執行個體,其將會使用一組特定的慣例來探索初始模型。
命名空間: System.Data.Entity
組件: EntityFramework (在 EntityFramework.dll 中)
語法
'宣告
Public Sub New ( _
modelBuilderVersion As DbModelBuilderVersion _
)
'用途
Dim modelBuilderVersion As DbModelBuilderVersion
Dim instance As New DbModelBuilder(modelBuilderVersion)
public DbModelBuilder(
DbModelBuilderVersion modelBuilderVersion
)
public:
DbModelBuilder(
DbModelBuilderVersion modelBuilderVersion
)
new :
modelBuilderVersion:DbModelBuilderVersion -> DbModelBuilder
public function DbModelBuilder(
modelBuilderVersion : DbModelBuilderVersion
)
參數
- modelBuilderVersion
類型:System.Data.Entity.DbModelBuilderVersion
要使用的慣例版本。