ups one small error: map.Property(x=>x.Value, map=>map.Type<NHibernate.Type.StringType>()); instead of: map.Property(x=>x.Value, map=>map.Type<Novatec.Type.StringType>());
On Jun 1, 1:16 pm, Luka <[email protected]> wrote: > Hi, > How to specify column type for property in convention mapper. > map.Property(x=>x.Value, map=>map.Type<System.String>()); > > throws an exception: > System.ArgumentOutOfRangeException : Expected type implementing > IUserType, ICompositeUserType or IType. > Parameter name: persistentType > > if I enstead put this: > map.Property(x=>x.Value, map=>map.Type<Novatec.Type.StringType>()); > > throws an exception: > Could not instantiate IType StringType: System.MissingMethodException: > No parameterless constructor defined for this object. > > the value property is typeof(object) -- 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.
