skip to the main content area of this page
Patterns and Practices

 

S#arp Architecture 0.7.2 - ASP.NET MVC and NHibernate 2.0 Beta 2 Update


Billy McCafferty updates his S#arp Architecture to use NHibernate 2.0 Beta 2 and removes the Spring Framework Dependency.

Based on the CodePlex Release Notes there are a lot of changes in this release-

  • NHibernate 2.0 Beta 1 (Beta 2 in 0.7.2) integration is now included.
  • Integration with Spring.NET has been dropped. Spring.NET is a fantastic library with world class AOP, IoC support, and many other modules. But for S#arp Architecture, a simpler approach was found for performing dependency injection without the need for external configuration files. If you're still in need of many of Spring.NET's terrific libraries, you'll want to take a look at release 0.6.* which comes preconfigured with Spring.NET.
    • The ~/SpringConfig folder no longer exists
    • There is no more SpringInteropController
    • The Spring XML generator has been dropped from ProjectBase
  • GenericDAO now uses the native NHibernate session.
  • HTTP Modules are no longer needed to support the Open-Session-in-View pattern for NHibernate session management.
  • All configuration, such as the DB connection string, is now just within web.config.
    Concrete types needed for Dependency injection are now declared at the top of each dependency interface; e.g., ISupplierDao.
  • NHibernate session storage mechanisms, for both web and unit-tests/winforms have been added to ProjectBase.Data and ProjectBase.Web.
  • The Identity attribute has been renamed to DomainSignature to better reflect its purpose.
  • Controllers now simply inherit from the base MVC Controller.
  • ProjectBase.Web.ControllerFactory has been introduced with built in dependency injection.

 

Check out the S#arp Architecture here.


Tags: MVC, NHibernate


Topics



 

Popular Tags



Recent Links