I've been trying to figure this one out for a while now and am hoping
someone can help me.  I'm using Fluent NHibernate, but that doesn't
affect my question.

I am using a custom enumeration type, to get more than I would get out
of an enum type.  I created a base IUserType implementation that works
well for these enumerations and have successfully mapped single
properties, like this:

mapping.Map(x =>
x.TypeOfSchool).CustomType<EnumerationUserType<SchoolType>>();

Now I have a class that contains a collection of one of these custom
enumeration types.  Allergens is a custom enumeration that I intended
to use like the SchoolType example above.

private IList<Allergens> _allergies {get;set;}

I can't figure out how to map this list?  I've looked at implementing
an IUserCollectionType, but that doesn't seem to get me what I want.
I still the same error:

Could not determine type for Allergens.

How can I tell NH that this is actually a collection of IUserType
objects?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to nhusers@googlegroups.com
To unsubscribe from this group, send email to 
nhusers+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to