共用方式為


DbContextInfo 建構函式 (Type, Configuration)

[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]

初始化具有指定內容類型及組態檔之 DbContextInfo 類別的新執行個體。

命名空間:  System.Data.Entity.Infrastructure
組件:  EntityFramework (在 EntityFramework.dll 中)

語法

'宣告
Public Sub New ( _
    contextType As Type, _
    config As Configuration _
)
'用途
Dim contextType As Type 
Dim config As Configuration 

Dim instance As New DbContextInfo(contextType, _
    config)
public DbContextInfo(
    Type contextType,
    Configuration config
)
public:
DbContextInfo(
    Type^ contextType, 
    Configuration^ config
)
new : 
        contextType:Type * 
        config:Configuration -> DbContextInfo
public function DbContextInfo(
    contextType : Type, 
    config : Configuration
)

參數

請參閱

參考

DbContextInfo 類別

DbContextInfo 多載

System.Data.Entity.Infrastructure 命名空間