Breyta

Deila með


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.

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

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