The problem was that the DbConnection was not an Entity Connection and this means the Connection works as Code First.
It works if i create a EntityConnection with the DbConnection and create the right Workspace and then use the Entity Connection with this contructor:
public DbContext(DbConnection connection, bool contextOwnsAndDisposesTheConnection)