次の方法で共有


DbProviderServices.CreateDatabase メソッド

定義

接続によって示されるデータベースを作成し、storeItemCollection の内容に基づいてスキーマ オブジェクト (テーブル、主キー、外部キー) を作成します。

public void CreateDatabase (System.Data.Common.DbConnection connection, Nullable<int> commandTimeout, System.Data.Entity.Core.Metadata.Edm.StoreItemCollection storeItemCollection);
member this.CreateDatabase : System.Data.Common.DbConnection * Nullable<int> * System.Data.Entity.Core.Metadata.Edm.StoreItemCollection -> unit

パラメーター

connection
DbConnection

作成して、storeItemCollection パラメーターで示されるストア オブジェクトを設定する必要がある、存在しないデータベースへの接続。

commandTimeout
Nullable<Int32>

データベースの作成に必要なすべてのコマンドの実行タイムアウト。

storeItemCollection
StoreItemCollection

作成するスクリプトの基となるすべてのストア アイテムのコレクション。

適用対象