Or a IUserType. Here's one you can use as base:
http://www.mail-archive.com/[email protected]/msg10885.html
Or try porting the old EmptyStringType to NH 2.1.x:
http://nhibernate.svn.sourceforge.net/viewvc/nhibernate/tags/1.2.1.GA/nhibernate/src/Nullables.NHibernate/EmptyStringType.cs?revision=3139&view=markup

On Apr 8, 6:27 pm, Ayende Rahien <[email protected]> wrote:
> Or event listeners
>
> 2010/4/9 Krzysztof Koźmic <[email protected]>
>
>
>
>
>
> > I guess NHibernate interceptors let you do that
>
> > 2010/4/8 Sybaris <[email protected]>:
> > > Addendum: After playing around a while I think that it would be
> > > perfect to have a chance to intercept the saving of objects - or to
> > > put it differently: Is there a way to tell CAR something like:
> > > "Whenever you save a string do a conversion on it"?
> > > Maybe important: I'm not deriving my classes from ActiveRecordBase.
>
> > > G.
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > "Castle Project Users" group.
> > > To post to this group, send email to
> > [email protected].
> > > To unsubscribe from this group, send email to
> > [email protected]<castle-project-users%2Bun 
> > [email protected]>
> > .
> > > For more options, visit this group at
> >http://groups.google.com/group/castle-project-users?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Castle Project Users" group.
> > To post to this group, send email to [email protected]
> > .
> > To unsubscribe from this group, send email to
> > [email protected]<castle-project-users%2Bun 
> > [email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/castle-project-users?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Castle Project Users" 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 
> athttp://groups.google.com/group/castle-project-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" 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/castle-project-users?hl=en.

Reply via email to