次の方法で共有


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 名前空間