Metodo Database.Exists
[Questa pagina è specifica della versione 6 di Entity Framework. La versione più recente è disponibile come pacchetto NuGet per "Entity Framework". Per ulteriori informazioni su Entity Framework, vedere la pagina msdn.com/data/ef.]
Controlla se il database esiste nel server.
Spazio dei nomi: System.Data.Entity
Assembly: EntityFramework (in EntityFramework.dll)
Sintassi
'Dichiarazione
Public Function Exists As Boolean
'Utilizzo
Dim instance As Database
Dim returnValue As Boolean
returnValue = instance.Exists()
public bool Exists()
public:
bool Exists()
member Exists : unit -> bool
public function Exists() : boolean
Valore restituito
Tipo: System.Boolean
True se il database esiste; in caso contrario, false.