I have two ASP.NET MVC5 projects, I want to connect them to the same database. I created a class library that contains the models and the DbContext.
The first app connects correctly, but when I run the second one I get an error says :
Cannot attach the file 'c:\users\saibi\documents\visual studio 2015\Projects\MonPFE\MonPFE.Frontend\App_Data\MonPFEContext-20161121115318.mdf' as database 'MonPFEContext-20161121115318'
PS: I have web.config in each project.