When should I use Abstract(); in SubclassMap? #417
Unanswered
ltlombardi
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The Abstract() from https://github.com/FluentNHibernate/fluent-nhibernate/blob/a22b8c5018a0143351595c71e6c5c5455c053114/src/FluentNHibernate/Mapping/SubclassMap.cs#L60 doesn't match the Nhibernate documentation.
Reading the documentation, the only mention of a parameter like this is in Chapter 8 , section "8.1.5. Table per concrete class"
It reads reads 'If your superclass is abstract, map it with abstract="true"'
So I'm trying to figure out what is going on.
Considering this example:
Should I put the Abstract(); in the SubclassMap file? Per documentation I shouldn't
What about
Should I put the Abstract(); in the SubclassMap file? Per documentation I should.
Nhibernate documentation indicates the the Abstract parameter is supposed to be put in the superclass, not the subclass, but the is no Abstract for superclass in Fluent Nhibernate.
And in my experience it doesn't matter if I put it or I don't. My system works the same. But a previous developer has put the Abstract(); in a lot of mappings.. and now I 'm trying to decide what to do.
Beta Was this translation helpful? Give feedback.
All reactions