DbProviderServices.CreateDatabaseScript(String, StoreItemCollection) Method

Definition

基于 StoreItemCollection 参数的内容并针对与提供程序清单标记相对应的数据库版本生成数据定义语言(创建架构对象(表、主键、外键)的 DDL 脚本)。Generates a data definition language (DDL script that creates schema objects (tables, primary keys, foreign keys) based on the contents of the StoreItemCollection parameter and targeted for the version of the database corresponding to the provider manifest token.

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

Parameters

providerManifestToken
String

标识目标版本的提供程序清单标记。The provider manifest token identifying the target version.

storeItemCollection
StoreItemCollection

数据库的结构。The structure of the database.

Returns

String

基于 StoreItemCollection 参数的内容并针对与提供程序清单标记相对应的数据库版本创建架构对象的 DDL 脚本。A DDL script that creates schema objects based on the contents of the StoreItemCollection parameter and targeted for the version of the database corresponding to the provider manifest token.

Applies to