title: How to have NHibernate persist a String.Empty property value as NULL
body: <p>I have a fairly simple class that I want to save to SQL Server via NHibernate (w/ Fluent mappings).   The class is made up mostly of optional string fields.</p>
  
  <p>My problem is I default the class fields to string.empty to avoid NullRefExceptions and when NHibernate saves the row to the database each column contains an empty string instead of null.</p>
  
  <p>Question:  Is there a way for me to get NHibernate to automatically save null when the string property is an empty string?   Or do I need to litter my code with if (string.empty) checks?</p>