I am launching my asp.net application and am having issues with some databases that were created locally. I need to change their connection string for the program to point to my new online SQL Server database but I can't find any way to do that. I created these databases locally using the Entity Framework code-first scaffolding. This is my code for the db context:
public class SubjectDbContext : DbContext
{
public DbSet<Subject> SubjectDatabase { get; set; }
}
And I made it into a .mdf using this method:
Which automatically generates the database using constructors (according to https://msdn.microsoft.com/en-us/library/jj653752(v=vs.110).aspx#localdbtosse). That's what I was able to figure out.
I really need to find these connection strings so I can change them because otherwise I don't know how to get my published application online to access its respective databases.
Remaking these databases is not really an option. So I need to find AND change the connection strings for them. Now the connection strings are not in the web.config file. In fact deleting all the connection strings in the web.config file does not stop these databases from working locally. So they must be stored somewhere else.
How can I change these connection strings. If I can't my application won't work online.
The closest post I could find to this question was: Code first: Where's the connection string & the Database?
but it doesn't answer the question. Thanks for any help or links.

