deep dive #8: Resources and ORM

Now we’re standing at the edge of the code pool. Let’s dive in! Good background reading: Deep dive #4 on ORM choice, deep dive #7 on database schema. The resource model As I described in my previous post, we ended up storing all different types of resources in one table. However, we model each of […]

January 10, 2012 · Jouni Heikniemi · 3 Comments
Tags: , ,  · Posted in: .NET, Web deep dive #4: Solving the ORM dilemma

In my series on deep dives, I’ll return to the original fields of Offbeat and discuss some backend solutions. We won’t dive into the code today, but will take a look at some hard architectural choices. Essentials of your ORM decision We chose to build a reasonably large web site using NHibernate. A few […]

May 27, 2011 · Jouni Heikniemi · One Comment
Tags: , , , ,  · Posted in: .NET

NullReferenceException from NHibernate in a WCF Service

Don’t you hate it when you get an NullReferenceException? NHibernate 2.1.2 throws one if you have an WCF Service that accesses the NHibernate context. If you get one from NHibernate.Context.WebSessionContext.GetMap(), read on… It’s really simple but easy to forget – NHibernate’s web session models requires you to have HttpContext available. That particular mentioned method calls […]

December 21, 2010 · Jouni Heikniemi · 5 Comments
Tags: , ,  · Posted in: .NET