Reputation: 1362
I am developing a complex web-platform with n-tier architecture. There are two projects inside solution: PresentationLayer.WebSite and APILayer.Restful.
Local database stored in App_Data inside PresentationLayer.WebSite. I have no idea how to implement following actions : (currently I'm workind in debug mode).
Upvotes: 8
Views: 2779
Reputation: 326
Connection string should link to one database. Just set direct path to one DB in both projects. In Visual Studio in Solution click propertis and in the Common Propertis tab you have Multiple startup projects and in the Action column you have to set right projects which should on the start.
Upvotes: 2
Reputation: 14995
Right click on your solution and select Properties. In the "Startup Project" select "Multiple startup projects" and set "Action" of your projects to "Start"
Upvotes: 17