You can download the sample here[^]. I’m developing my first MVC application. I’ve been working with ASP.Net for a couple of years and only now I’ve some contact with MVC.
First of all, I’ve defined the application layout and I realized that I needed to display the menu and the site map path dynamically. After some research I couldn’t find any SQL site map provider for MVC. The only sample that I’ve found was the MVCSiteMapProvider, which has XML as data source, posted by Maarten Balliauw. With this sample I’ve developed the MVCSQLSiteMapProvider. This is only a prototype and it could be improved. I’ve only implemented the base functionalities that I needed so far. So if you have any suggestion, just write them down.
The site map data model is similar with the XML site map provider. So it’s possible to define a node with the correspondent URL or with the controller/action.