0

I have searched through a number of questions(No Connection String Named MyEntities Could Be Found In The Application Config), but most seem to deal with multiple projects in a solution, in this case I have only one project in one solution. Also this is my first MVC Project with EF6. When going to add a controller I get this error:

enter image description here

This is my Web.Config

enter image description here

And This is My Solution Explorer

enter image description here

I know the error references an Application Config File, but I do not have an app Config file, nor do I know where to put it or how to create it.

EDIT, Here is the code for the db context

public class ApplicationDbContext : IdentityDbContext<ApplicationUser>
{
     public ApplicationDbContext() : base("name=DBConnection"){}
     public System.Data.Entity.DbSet<zzz.Models.Supplier> Suppliers { get; set; }
}
Community
  • 1
  • 1
Joe Stellato
  • 558
  • 9
  • 31

0 Answers0