I recently upgraded/updated Entity Framework in an old project from version 4 or 5 to version 6. Now I get this exception:
An exception of type \'Syst
I have solved the issue using below code in my DBContext
public partial class Q4Sandbox : DbContext
{
public Q4Sandbox()
: base("name=Q4Sandbox")
{
}
public virtual DbSet Employees { get; set; }
protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
var instance = System.Data.Entity.SqlServer.SqlProviderServices.Instance;
}
}
Thanks to a SO member.