Given the following scenario, I want map the type hierarchy to the database schema using Fluent NHibernate.
I am using NHibernate 2.0
Type Hier
The line of code: if (part.GetType().BaseType.Name == "JoinedSubClassPart1") can be rewritten as follows:
if (part.GetType().BaseType.Name == "JoinedSubClassPart1")
part.GetType().BaseType.IsGenericType && part.GetType().BaseType.GetGenericTypeDefinition() == typeof(JoinedSubClassPart<>)