Posts Tagged “EF”

When working with the Entity Framework Code First I will often get the error below: An exception of type “System.Data.SqlClient.SqlException’ occurred in EntityFramework.dll but was not handled by in user code’ Additional information: Cannot drop database [database name] because it is currently in use. To force a delete of the database, follow the steps below. Figure: This exception is common after you have opened a LocalDb database in Visual Studio.   ... [Read More]