Forgot to mention: your class must implement
NHibernate.UserTypes.IParameterizedType.
It only defines a single method, SetParameterValues, from which you can
obtain the passed parameters and set your class properties accordingly.
RP
On Monday, October 27, 2014 10:37:30 AM UTC, pasquale wrote:
>
>
>
> On 23/10/2014 18:34, Ricardo Peres wrote:
> > Try this instead:
> >
> > map.Type<XXXUserType>(new { XXXProperty = 5 });
> >
> > Where XXXUserType has a property XXXProperty of type int.
> > Works with me!
> >
> > RP
>
> In this case I receive a runtime error "type is not
> parameterized":ClassThatImplementsIUserType
>
>
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.