-
Have you ever noticed that out of the box NHibernate’s DateTime type will truncate/ignore your milliseconds for DateTime fields? If you do not believe me check out this post . If you think about why it does this it will become clear, NHibernate runs against MANY databases and each one of them stores...
-
If you have ever used NHibernate I am sure you have encounted the error ‘Invalid Index ‘N’ for this SqlParameterCollection with Count=N’ (where N is any number) exception when trying to create your mappings. If you are completely new to NHibernate, as I am I am sure this one has you scratching your head...
-
For all of its power and glory NHibernate is no different than any other tool which requires you to configure it before you can use it. In the case of NHibernate you need to configure (map) each of the tables you want to access to the various entities in which they are going to populate. ...
-
One exception you may run across while using Fluent Nhibernate (or straight up NHibernate) is System.Data.SqlClient.SqlException: Invalid column name ‘……’. This is normally caused because you did not provide the correct column name when doing your mapping. Lets take a look at the code below which...
-
Yet another post on my learning NHIbernate in public…. In an attempt to provide full disclosure I am a complete NOOBIE when it comes to NHibernate. In fact I have only been using it for a few weeks or so. What this means is take everything I say in this post with a grain of salt cause there may...
-
Yet another post on my learning NHIbernate in public…. In an attempt to provide full disclosure I am a complete NOOBIE when it comes to NHibernate. In fact I have only been using it for a few weeks or so. What this means is take everything I say in this post with a grain of salt cause there may...
-
The key goal to the Fluent-NHibernate project is to allow you to remove yourself from creating .hbm files. However, there are many scenarios where having both may make sense (say in a legacy situation). Because I ran into the need to include a single .hbm file in my solution I thought would share...
-
In an attempt to provide full disclosure I am a complete NOOBIE when it comes to NHibernate. In fact I have only been using it for a few weeks or so. What this means is take everything I say in this post with a grain of salt cause there may be a better, easier way. In a previous post I talked about...