Tag: NHibernate

Codesmith Templates for nHibernate and ASP.NET MVC

Reason #52356 I love using Castle’s ActiveRecord is that CRUD is automatically handled for you, which is a major time saver. I’m always looking for any edge to speed up the development process or automate redundant tasks, and that little drive led me to Codesmith Tools. What’s so cool about Codesmith? The fact that once [...]

January 10 / 2010

Initialize global asax in MVC for NHibernate ActiveRecord

Initializing your global.asax for MVC and NHibernate’s ActiveRecord is really easy. There are really only two sections you need to touch: the using section and Application_Start(). Configure using section Out of the box, you don’t have to do anything if you are NOT using ActiveRecord for CRUD. If you want to use ActiveRecord, here are [...]

January 09 / 2010
Author bill sternberger
Comments 1 Comment

How to implement paging with c#, mvc, nHibernate, ICriterion

There is a really cool jQuery tool (http://tablesorter.com/docs/index.html) that uses PFM Technology (Pure Freakin’ Magic) to make your html table just magically page and sort. It works great with MVC and nHibernate, but I wanted to get fancy and make my own. Turned out to be surprisingly easy. Here’s what I did: Preparing the Controller [...]

December 23 / 2009
Author bill sternberger
Comments No Comments

How To Create a Class with ActiveRecord

How to create a custom query using NHibernate and ActiveRecord

December 06 / 2009
Author bill sternberger
Comments No Comments