Freigeben über


Database.Delete-Methode (DbConnection)

[Diese Seite bezieht sich auf Entity Framework Version 6. Die neueste Version ist als 'Entity Framework' NuGet-Paket verfügbar. Weitere Informationen zu Entity Framework finden Sie unter msdn.com/data/ef.]

Löscht die Datenbank auf dem Datenbankserver, wenn sie vorhanden ist, und führt andernfalls keine Aktion aus.

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

Syntax

'Declaration
Public Shared Function Delete ( _
    existingConnection As DbConnection _
) As Boolean
'Usage
Dim existingConnection As DbConnection 
Dim returnValue As Boolean 

returnValue = Database.Delete(existingConnection)
public static bool Delete(
    DbConnection existingConnection
)
public:
static bool Delete(
    DbConnection^ existingConnection
)
static member Delete : 
        existingConnection:DbConnection -> bool
public static function Delete(
    existingConnection : DbConnection
) : boolean

Parameter

Rückgabewert

Typ: System.Boolean
TRUE, wenn die Datenbank vorhanden war und gelöscht wurde, andernfalls FALSE.

Siehe auch

Verweis

Database Klasse

Delete-Überladung

System.Data.Entity-Namespace