* Please remember that ASP.NET MVC does run in ASP.NET. So nearly all the FAQ items under the Web Forms topic apply to ASP.NET MVC as well.


Does CSLA .NET work with ASP.NET MVC 4?

Yes, CSLA 4 version 4.5 is built against the Microsoft ASP.NET MVC 4 assemblies.


Does CSLA .NET work with ASP.NET MVC 3?

Yes, but you need to recompile the CSLA 4 Csla.Web.Mvc project against the Microsoft ASP.NET MVC 3 assembly.


Does CSLA .NET work with ASP.NET MVC 2?


CSLA .NET works great with any of the "M" patterns (MVVM, MVC, MVP, etc), since it is all about helping you create a great Model.

In short, your CSLA .NET business objects are the 'model', and you should use Controller code to link your model to the View. Similarly, for any postbacks that trigger an action, the Controller code should simply invoke appropriate methods on the Model so the business objects do the work.

The result is that CSLA .NET allows you to create a powerful Model, minimizing code in the Controller and allowing the Controller to focus purely on user interaction and orchestration, leaving all business behaviors to the Model where they belong.

CSLA .NET 3.8 introduced a CslaModelBinder class to smooth the one outstanding issue with using ASP.NET MVC with the cool Controller "data binding" capabilities. This is optional, but addresses some issues that come up if you use MVC 2 and DataAnnotations attributes and Controller data binding together.

All content and CSLA .NET is Copyright © 2009-2011 Marimer LLC