I have a two project, one asp.net MVC project and second .net library project with entity framework 6.0 I just added reference of last project to the main MVC project and trying to use class OnlineShopEntities extended DBContext
OnlineShopEntities db = new OnlineShopEntities();
bool exists = db.User.Any(i => i.Username == username);
I have a error when using
No connection string named 'OnlineShopEntities' could be found in the application config file.
How can I add manually connection string in web.config file and how can I write it correctly?