Static method EntityFramework!Database.Delete(DbConnection) has no effect when dotConnect OracleConnection is supplied as a parameter (direct mode, user's schema in the database is not empty). Tried it with all different values of DatabaseScript.Schema.DeleteDatabaseBehaviour with the same result.
Expected behavior is to be the same as when calling ObjectContext.DeleteDatabase() for a context created with the same database connection.
In fact, Database.Delete() calls ObjectContext.DeleteDatabase() internally for a specially constructed "empty" context:
Code: Select all
As no StoreItemCollection is supplied in this case, the only viable option would be to delete the entire user's schema (which probably corresponds to DeleteDatabaseBehaviour.AllSchemaObjects or DeleteDatabaseBehaviour.Schema).
Similar issue: http://forums.devart.com/viewtopic.php?f=1&t=29261