In the past, I have had the requirement to create an implementation of
IUserType interface to manage multiples columns of a table as an array
(10 columns of type int).
Now I have the same requirement: 5 colums of type int.
I would like to add a constructor to IUserType implementation to handle
both case (5 columns and 10 columns).
It's possible to achieve this goal via mapping by code using the
declaration of Type<TPersistentType>(object parameters)? I can't figure
out how I can accomplish my task.

            Property(x => x.XXX, map => {
                map.Columns(cm => cm.Name("xxx1"),
                    cm => cm.Name("xxx2"),
                    ...);
                map.Type<XXXUserType>(???);
                map.Access(Accessor.NoSetter);
            });

Thanks in advance.

-- 
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.

Reply via email to