When running into this issue, please try adding parameters to your add-migration cmdlet. For example, specifying the start up project as well as the connection string name could help EF find your target database.
add-migration Delta_Defect_0973 -ConfigurationTypeName your.namespace.ContextClassName -StartUpProject DeltaProject -ConnectionStringName DeltaSQL
Where:
Delta_Defect_0973 is the name of your migration
your.namespace.ContextClassName is the name of your Configuration class in your migration folder, prefixed with the full name space.
DeltaProject is the name of your main project with your web.config or app.config file.
DeltaSQL is the name of your connection string defined in your web.config or app.config file.