I’m having trouble figuring out what the differences between ASP.NET MVC and Spring.Net MVC are. I understand how ASP.NET MVC and Spring.Net work separately, but I cannot quite sort out what the “MVC” part of “Spring.Net MVC” brings, overrides or changes in the way the ASP.NET MVC framework works/is used ; e.g. should I use “Spring.Net” or “Spring.Net MVC”?
In short, the question behind this is that I want to use ASP.NET MVC, Spring.Net and Telerik’s MVC controls and want to be sure that using Spring.Net MVC would not prevent using Telerik’s controls. Has anyone had some experience with this?
Thanks a lot in advance!
They don’t conflict. Spring.net MVC adds dependency injection capabilities to asp.net MVC; see details here, including specific web scopes. Many other DI containers supply modules that extend asp.net mvc this way.
Typically, this allows you to wire-up your controllers using the Spring.net DI container, as demonstrated in the mvc 3 quickstart (which ships with the examples). Or, more precise, Spring.net provides its own implementation of
IDependencyResolverto returnControllers,ActionFilters and other services the asp.net mvc runtime requests.Using Spring.NET MVC does not prevent you from using Telerik controls at all.