IUserTypeExample for similar issue
http://code.google.com/p/unhaddins/source/browse/trunk/uNhAddIns/uNhAddIns/UserTypes/TrimString.cs

<http://code.google.com/p/unhaddins/source/browse/trunk/uNhAddIns/uNhAddIns/UserTypes/TrimString.cs>very
easy to modify for your needs.

2009/8/12 Mohan Bagan <[email protected]>

>
> Hi,
>
> I am developing an application using NHibernate(latest version)  with
> Oracle as the DB.
>
> The issue I am having is with the way Oracle handles empty strings.
>
> I believe in the earlier versions of Nhibernate, you had
> EmptyStringType that automatically inserted null when strings are
> empty and made strings empty if value was null when pulling from the
> database.
>
> In the new version of NHibernate, I see that the strings are null when
> pulling from the database. Is it possible to configure NHibernate so
> that the null nvarchar2 columns in the database are empty string when
> loading into objects.
>
>
> Thanks
>
>
>
>
> >
>


-- 
Fabio Maulo

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to