I could be wrong but I'm going to speculate that the automapper doesn't recognise a list of enums as a special case that needs to be handled differently.
What does your schema look like? On Tue, Aug 3, 2010 at 9:21 AM, GlanT <glantgooglegro...@hotmail.com> wrote: > I am using Automapping feature in Fluent Hiberate. I have a collection > list of enum's and i get exception when building configuration is > called. > > > namespace Test.Svc.EnumStuff > { > public enum Colors > { > Red, > Green, > Blue > } > > public enum Food > { > Burger, > Pizza, > Sandwich > } > } > > namespace Test.Svc.MyClass > { > public class Class1 > { > public virtual IList<Test.Svc.EnumStuff.Colors> ColorsList > {get; set;} > public Class1() > { > ColorsList = new List<Test.Svc.EnumStuff.Colors>(); > } > } > } > > exception is throw in buildconfiguration 'Association references > unmapped class: Test.Svc.EnumStuff.Colors > > > I have googled and came up with this post but it also has no response. > > http://stackoverflow.com/questions/2676867/nullreferenceexception-mapping-collection-of-enum-with-fluent-nhibernate-automapp > > -- > You received this message because you are subscribed to the Google Groups > "Fluent NHibernate" group. > To post to this group, send email to fluent-nhibern...@googlegroups.com. > To unsubscribe from this group, send email to > fluent-nhibernate+unsubscr...@googlegroups.com<fluent-nhibernate%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/fluent-nhibernate?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to fluent-nhibern...@googlegroups.com. To unsubscribe from this group, send email to fluent-nhibernate+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/fluent-nhibernate?hl=en.