Share via


DbProviderServices.CreateDatabaseScript(String, StoreItemCollection) 方法

定義

產生用於建立結構描述物件 (資料表、主索引鍵、外部索引鍵) 的資料定義語言 (DDL) 指令碼,這個指令碼所建立的結構描述物件會以 StoreItemCollection 參數內容為根據,並以對應至提供者資訊清單語彙基元的資料庫版本為目標。

public:
 System::String ^ CreateDatabaseScript(System::String ^ providerManifestToken, System::Data::Metadata::Edm::StoreItemCollection ^ storeItemCollection);
public string CreateDatabaseScript (string providerManifestToken, System.Data.Metadata.Edm.StoreItemCollection storeItemCollection);
member this.CreateDatabaseScript : string * System.Data.Metadata.Edm.StoreItemCollection -> string
Public Function CreateDatabaseScript (providerManifestToken As String, storeItemCollection As StoreItemCollection) As String

參數

providerManifestToken
String

提供者資訊清單語彙基元,可識別目標版本。

storeItemCollection
StoreItemCollection

資料庫的結構。

傳回

DDL 指令碼,其會以 StoreItemCollection 參數內容為根據,並以與提供者資訊清單語彙基元對應的資料庫版本為目標,來建立結構描述物件。

適用於