VistaDB 6
VistaDB.Entity Namespace / VistaDBProviderServices Class / DbCreateDatabase Method
Connection to a non-existent database that needs to be created and populated with the store objects indicated with the storeItemCollection parameter.
Execution timeout for any commands needed to create the database.
The collection of all store items based on which the script should be created.


In This Topic
    DbCreateDatabase Method
    In This Topic
    Creates a database indicated by connection and creates schema objects (tables, primary keys, foreign keys) based on the contents of a StoreItemCollection.
    Syntax
    'Declaration
     
    
    Protected Sub DbCreateDatabase( _
       ByVal connection As System.Data.Common.DbConnection, _
       ByVal commandTimeout As System.Nullable(Of Integer), _
       ByVal storeItemCollection As System.Data.Entity.Core.Metadata.Edm.StoreItemCollection _
    ) 
    'Usage
     
    
    Dim instance As VistaDBProviderServices
    Dim connection As System.Data.Common.DbConnection
    Dim commandTimeout As System.Nullable(Of Integer)
    Dim storeItemCollection As System.Data.Entity.Core.Metadata.Edm.StoreItemCollection
     
    instance.DbCreateDatabase(connection, commandTimeout, storeItemCollection)
    protected void DbCreateDatabase( 
       System.Data.Common.DbConnection connection,
       System.Nullable<int> commandTimeout,
       System.Data.Entity.Core.Metadata.Edm.StoreItemCollection storeItemCollection
    )

    Parameters

    connection
    Connection to a non-existent database that needs to be created and populated with the store objects indicated with the storeItemCollection parameter.
    commandTimeout
    Execution timeout for any commands needed to create the database.
    storeItemCollection
    The collection of all store items based on which the script should be created.
    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