You can't create a class map to an enum. What you're looking for is an
element mapping for your collection. Something like this:
HasMany(m=>m.SupportedLanguages).AsSet().AsElement(columnNameHere);

On Tue, Apr 28, 2009 at 12:08 PM, depaulo <[email protected]>wrote:

>
> I have the following:
>
> public class Survey
> {
>    IList<Language> SupportedLanguages {get;set;}
> }
>
> public enum Language
> {
>    English,
>    French
> }
>
> and I am trying to map the Survey class with HasMany
> (m=>m.SupportedLanguages)
> I am getting the 'Reference to unmapped class Language' error which is
> understandable but I cannot figure out from anywhere how I am supposed
> to either make sure Language is mapped or use HasMany in a different
> way.
>
> Does anyone have any ideas?
>
> Thanks in advance....
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" 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/fluent-nhibernate?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to