{STATIC} hippo

...on becoming a great developer...
posts - 38, comments - 12, trackbacks - 0

My Links

Archives

Post Categories

NHibernate

EntityFramework should throw more exceptions!

I’m working on a new project using .NET4, MVC2 and EntityFramework.  For the last couple years I’ve been using NHibernate as my ORM of choice but there are a lot of similarities between NHibernate and EntityFramework actually so the learning curve is quite small.  There are a number of things that make me long for NHibernate, but one stands out in my mind: lazy loading.  One of my first issues with EF was trying to track down a bug: ClassA has a property reference to ClassB, but the property is always null even when ClassB exists in the database.  After...

posted @ Friday, May 28, 2010 12:05 PM | Feedback (0) | Filed Under [ NHibernate Entity Framework ]

Mapping Serializable types using Fluent NHibernate

Yesterday I posted a question to StackOverflow (http://stackoverflow.com/questions/2097364/mapping-to-serializabletype-in-fluent-nhibernate) asking whether anyone could tell me how to map a Serializable type using Fluent NHibernate.  The outcome was disappointing to say the least.  In 24 hours there have been less than 20 views.  It was voted up twice, but no comments or answers were posted. Even worse, there’s another post on StackOverflow (http://stackoverflow.com/questions/2000798/map-to-serializable-in-fluent-nhibernate) that asks this same question and has an answer that’s incorrect (it compiles but throws an exception at runtime). Serializable types in NHibernate (XML) Before I continue, I’ll give a little background.  Feel free to skip...

posted @ Wednesday, January 20, 2010 11:35 AM | Feedback (2) | Filed Under [ NHibernate ]

NHibernate Generic Dictionary Mapping

"NHibernate: have I told you today how much I love you?" The other day I had a good reason to use a generic dictionary and I though hey, I wonder how I'll get that working with NHibernate...  It's very simple to persist Generic Dictionarys with NHibernate as I found out.  Let's see an example... .NET PSEUDO CODE Take a person and his favorite or least favorite deserts: First we have a Person object class Person ----------- int PersonId ...

posted @ Wednesday, January 14, 2009 4:42 PM | Feedback (1) | Filed Under [ NHibernate ]

Powered by:
Powered By Subtext Powered By ASP.NET