I\'m confused by the connection string in the Web.config file of project with Entity Framework Web API. There are a lot of variants I tried, but none of them was helping me out.
This tutorial how to setup SQL Server 2008 for an ASP.net website on IIS 7.0 brought me close to the solution.
Basically, what you need to do is
Changing the name of my connection string helped me establish the connection finally.
The context model required this name.
public class MyProjectContext : DbContext
{
public MyProjectContext() : base("name=MyProjectContext")
{
}
public DbSet Model1 { get; set; }
public DbSet Model2 { get; set; }
}