'DeclarationProtected 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
'UsageDim 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.