Musings

Thoughts, stories and ideas.

  • Home

Castle Windsor PerWebRequest Error [Solved]

If you get the following error Looks like you forgot to register the http module Castle.MicroKernel.Lifestyle.PerWebRequestLifestyleModule To fix this add to the section on your web.config. Windsor also detected

Ravi Ranjan

NHibernate : Mapping a custom sql query to an entity

This is a simple one. Just add .AddEntity to the ISqlQuery. E.g. var query = session.CreateSQLQuery("select * from posts"); query.AddEntity(typeof(Post)); IList posts = query.List(); Also if the

Ravi Ranjan

NHibernate Second Level Caching - It's Complicated

NHibernate Second Level Cache is the best friend that you can't trust. Its a mixed bag of hits and misses. We'll analyze some of the issues/nuances in detail here. Lets assume we

Ravi Ranjan

Fixing SVN zombie locks

Problem: SVN zombie locks occur when files that are "locked" are deleted. After the delete if you try to rename or remove the parent folder(s), SVN will give an error

Ravi Ranjan

WCF DataContracts and Restful messages

The use of DataContract attribute will make the XML elements to be alphabetically sorted. The clients will also have to send the XML messages with the elements alphabetically sorted. If we add XmlSerializerFormat,

Ravi Ranjan

NHibernate Mapping Generator

There is a new release of NHibernate mapping generator. It supports .hbm.xml and fluent mapping generation. Check out at https://github.com/rvrn22/nmg It even supports Active Record mapping generation.

Ravi Ranjan

WCF Data Services 4 Vs NHibernate

We recently were considering using WCF Data Services (Entity Framework) as our Service Layer. We did a comparative study of WCF Data Service using EF 4 Vs. Building a service layer with NHibernate

Ravi Ranjan
Musings © 2025
Latest Posts Ghost