Database.Exists Method (DbConnection)

Entity Framework 5.0

Checks whether or not the database exists on the server.

Namespace:  System.Data.Entity
Assembly:  EntityFramework (in EntityFramework.dll)

public static bool Exists(
	DbConnection existingConnection
)

Parameters

existingConnection
Type: System.Data.Common.DbConnection

An existing connection to the database.

Return Value

Type: System.Boolean
True if the database exists; false otherwise.
Show: