Valio.fi 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: data access, NHibernate, valio.fi · Posted in: .NET, Web
Valio.fi deep dive #4: Solving the ORM dilemma
In my series on valio.fi 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: data access, Entity Framework, NHibernate, ORM, valio.fi · 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: ASP.NET, NHibernate, WCF · Posted in: .NET