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 參數的內容建立結構物件,並針對對應提供者清單標記的資料庫版本來設定。

適用於