VistaDB 6
VistaDB.Entity Namespace / VistaDBProviderServices Class / CreateDatabaseScript Method
The provider manifest token identifying the target version.
The structure of the database.


In This Topic
    CreateDatabaseScript Method
    In This Topic
    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.
    Syntax
    'Declaration
     
    
    Public Function CreateDatabaseScript( _
       ByVal providerManifestToken As System.String, _
       ByVal storeItemCollection As System.Data.Entity.Core.Metadata.Edm.StoreItemCollection _
    ) As System.String
    'Usage
     
    
    Dim instance As VistaDBProviderServices
    Dim providerManifestToken As System.String
    Dim storeItemCollection As System.Data.Entity.Core.Metadata.Edm.StoreItemCollection
    Dim value As System.String
     
    value = instance.CreateDatabaseScript(providerManifestToken, storeItemCollection)
    public System.string CreateDatabaseScript( 
       System.string providerManifestToken,
       System.Data.Entity.Core.Metadata.Edm.StoreItemCollection storeItemCollection
    )

    Parameters

    providerManifestToken
    The provider manifest token identifying the target version.
    storeItemCollection
    The structure of the database.

    Return Value

    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.
    Remarks
    Individual statements should be separated using database-specific DDL command separator. It is expected that the generated script would be executed in the context of existing database with sufficient permissions, and it should not include commands to create the database, but it may include commands to create schemas and other auxiliary objects such as sequences, etc.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also