VistaDB 6
VistaDB.Entity Namespace / VistaDBProviderServices Class / DbDatabaseExists Method
Connection to a database whose existence is checked by this method.
Execution timeout for any commands needed to determine the existence of the database.
The collection of all store items from the model. This parameter is no longer used for determining database existence.


In This Topic
    DbDatabaseExists Method
    In This Topic
    Returns a value indicating whether a given database exists on the server.
    Syntax
    'Declaration
     
    
    Protected Function DbDatabaseExists( _
       ByVal connection As System.Data.Common.DbConnection, _
       ByVal commandTimeout As System.Nullable(Of Integer), _
       ByVal storeItemCollection As System.Data.Entity.Core.Metadata.Edm.StoreItemCollection _
    ) As System.Boolean
    '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
    Dim value As System.Boolean
     
    value = instance.DbDatabaseExists(connection, commandTimeout, storeItemCollection)
    protected System.bool DbDatabaseExists( 
       System.Data.Common.DbConnection connection,
       System.Nullable<int> commandTimeout,
       System.Data.Entity.Core.Metadata.Edm.StoreItemCollection storeItemCollection
    )

    Parameters

    connection
    Connection to a database whose existence is checked by this method.
    commandTimeout
    Execution timeout for any commands needed to determine the existence of the database.
    storeItemCollection
    The collection of all store items from the model. This parameter is no longer used for determining database existence.

    Return Value

    True if the provider can deduce the database only based on the connection.
    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