You are right, my fault... I was thinking about the static instances in
NHibernateUtil.
Try this instead:
map.Type<XXXUserType>(new { XXXProperty = 5 });
Where XXXUserType has a property XXXProperty of type int.
Works with me!
RP
On Thursday, October 23, 2014 2:55:52 PM UTC+1, pasquale wrote:
>
>
>
> On 23/10/2014 13:01, Ricardo Peres wrote:
> > You can use the overload that takes an instance:
> >
> > map.Type(new XXXUserType(5));
> >
> > RP
> Hi Ricardo.
> In this case I receive an error "No matching constructor was found", in
> both case (generic and not generic):
> map.Type<XXXUserType>(new new XXXUserType(5))
> and
> map.Type(new new XXXUserType(5))
>
> I'm on NH 4.0.0.400
>
>
--
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.