I have solution with two projects.
- ASP.NET MVC3
- Class library
In class library I have mdf database and all the classes for BLL and DAL.
How can I create reference to this database from MVC project or how can I tell class library to use connection string and mdf from MVC project App_Data folder?
ConfigurationManagerclass to read connection string and app settings which will automatically use web.config of website.For samples, you can see example of mvc store front and other examples on codeplex.
I hope this will help.
Thanks
Prashant