DbProviderServices.CreateDatabase(DbConnection, Nullable<Int32>, StoreItemCollection) 方法

定義

建立連接所表示的資料庫,並建立結構描述物件。Creates a database indicated by connection and creates schema objects.

public:
 void CreateDatabase(System::Data::Common::DbConnection ^ connection, Nullable<int> commandTimeout, System::Data::Metadata::Edm::StoreItemCollection ^ storeItemCollection);
public void CreateDatabase (System.Data.Common.DbConnection connection, int? commandTimeout, System.Data.Metadata.Edm.StoreItemCollection storeItemCollection);
member this.CreateDatabase : System.Data.Common.DbConnection * Nullable<int> * System.Data.Metadata.Edm.StoreItemCollection -> unit
Public Sub CreateDatabase (connection As DbConnection, commandTimeout As Nullable(Of Integer), storeItemCollection As StoreItemCollection)

參數

connection
DbConnection

與不存在之資料庫的連接,需要建立這個資料庫並在其中填入 storeItemCollection 參數所表示的存放區物件。Connection to a non-existent database that needs to be created and populated with the store objects indicated with the storeItemCollection parameter.

commandTimeout
Nullable<Int32>

建立資料庫時所需之任何命令的執行逾時時間。Execution timeout for any commands needed to create the database.

storeItemCollection
StoreItemCollection

建立指令碼時所應根據之所有存放區項目的集合。The collection of all store items based on which the script should be created.

適用於