DbProviderServices.DbCreateDatabaseScript(String, StoreItemCollection) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
產生一種資料定義語言(DDL 腳本),根據 StoreItemCollection 參數的內容,並針對提供者清單標記的資料庫版本建立結構物件(資料表、主鍵、外鍵)。
protected:
virtual System::String ^ DbCreateDatabaseScript(System::String ^ providerManifestToken, System::Data::Metadata::Edm::StoreItemCollection ^ storeItemCollection);
protected virtual string DbCreateDatabaseScript(string providerManifestToken, System.Data.Metadata.Edm.StoreItemCollection storeItemCollection);
abstract member DbCreateDatabaseScript : string * System.Data.Metadata.Edm.StoreItemCollection -> string
override this.DbCreateDatabaseScript : string * System.Data.Metadata.Edm.StoreItemCollection -> string
Protected Overridable Function DbCreateDatabaseScript (providerManifestToken As String, storeItemCollection As StoreItemCollection) As String
參數
- providerManifestToken
- String
提供者清單令牌,識別目標版本。
- storeItemCollection
- StoreItemCollection
資料庫的結構。
傳回
一個 DDL 腳本,根據 StoreItemCollection 參數的內容建立結構物件,並針對對應提供者清單標記的資料庫版本來設定。