Hey.
I have a lot of entities in my domain model that I want to map with subclass
mapping. I'm really uncertain how this is best done in FNH these days. The only
examples I find online are for fluent mappings, not for automapping. I'd like
the conventions I've defined to apply to all subclassed entities, but if I try
something like this in an IAutoMappingOverride:
mapping.JoinedSubClass<Child>("Type");
The Child object won't be mapped according to conventions. If I try the
following:
mapping.SubClass<Child>(1, x => { })
FNH throws the following exception:
System.MissingMethodException: Constructor on type
'FluentNHibernate.Automapping.AutoSubClassPart`1[[Child]]' not found
Creating an implementation of AutoSubClassPart<Child> doesn't help either, and
I'm not sure this is a class I'm supposed to implement either way. I guess not.
I'm having difficulties figuring out how subclass mapping can be done combined
with automapping. Is it possible or do I have to revert to static fluent
mapping (that disregard my lovely conventions)?
--
Asbjørn Ulsberg -=|=- [email protected] (mailto:[email protected])
«He's a loathsome offensive brute, yet I can't look away»
--
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.