An IUserType that reads a nullNothingnullptr value from an ansi string column in the database as a String.Empty and writes a String.Empty to the database as nullNothingnullptr.

Namespace: Nullables.NHibernate
Assembly:   Nullables.NHibernate (in Nullables.NHibernate)
Version: 1.2.0.4000

Syntax

Visual Basic (Declaration)
Public Class EmptyAnsiStringType _
	Implements IUserType
C#
public class EmptyAnsiStringType : IUserType
Visual C++
public ref class EmptyAnsiStringType : IUserType

Remarks

This is intended to help with Windows Forms DataBinding and the problems associated with binding a null value. See NH-279 for the origin of this code.

Inheritance Hierarchy

System.Object
  Nullables.NHibernate.EmptyAnsiStringType