At work we currently have a very large web application with a connection to a massive database. We have been using Entity Framework for a while now and to make things easier we
Add Default Construction in your Class
public class ItemContext : DbContext
{
public DbSet- Items get; set; }
public DbSet
ItemDetails { get; set; }
public ItemContext ()
{
this.Database.Connection.ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;
}
}