I don't think you should be mapping Name in the SuperClassTypeMap as well as
in the subclasses.
On Wed, Mar 11, 2009 at 12:44 PM, Martin Nilsson mffmar...@gmail.comwrote:
I'm trying to map the state pattern to NH as this page tells me to do:
Same error if I remove map to superclass Name
public void CreateMap()
{
Id(s = s.Id);
//Map(x = x.Name);
DiscriminateSubClassesOnColumn(Name)
.SubClassSubClassType(m = m.Map(sc = sc.Name));
}
On Wed, Mar 11, 2009 at 1:48 PM, James Gregory jagregory@gmail.comwrote: