Прочетете на английски Редактиране

Споделяне чрез


DbProviderServices.DbCreateDatabaseScript(String, StoreItemCollection) Method

Definition

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.

C#
protected virtual string DbCreateDatabaseScript(string providerManifestToken, System.Data.Metadata.Edm.StoreItemCollection storeItemCollection);

Parameters

providerManifestToken
String

The provider manifest token identifying the target version.

storeItemCollection
StoreItemCollection

The structure of the database.

Returns

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

Продукт Версии
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1