DbProviderServices.CreateDatabaseScript(String, StoreItemCollection) 方法

定义

根据 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 参数的内容创建架构对象,并针对对应于提供程序清单令牌的数据库版本。

适用于