DbProviderServices.CreateDatabase 方法

定义

创建连接指示的数据库并创建架构对象。

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 参数指示的存储对象)建立连接。

commandTimeout
Nullable<Int32>

创建数据库所需的任何命令的执行超时。

storeItemCollection
StoreItemCollection

应根据该脚本创建的所有存储项的集合。

适用于