mcintyre321
unread,Feb 4, 2009, 4:26:05 PM2/4/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Fluent NHibernate
I've just had an error while trying to automap some inheritance. "The
element 'class' in namespace 'urn:nhibernate-mapping-2.2' has invalid
child element 'joined-subclass'"
I may be barking slightly up the wrong tree about how the guts of
FluentNH work, but it looks to me like FNH builds up a virtual xml
mapping file, then parses it. I have a suggestion to make this easier.
A while back I did some experiments with generating a statically typed
object model for the Linq To Sql XSD schema using the alpha 0.2
release of Linq to XSD. If you were to generate a class model based on
the NHibernate XSD schema you might find manipulating the virtual
mapping file a lot easier - for example, it wouldn't be possible to
add invalid elements to a particular node. I've generated one of these
models for NH before using Linq To XSD when I was thinking about
making a similar tool to FNH, but I stopped experimenting on it when
FNH came along.
Oh I've just had a look at the source it looks like its already been
done manually... Basically you can generate a load of the stuff in
the .Mapping namespace