Mapping One-to-One subclass in Fluent NHibernate
- by Mike C.
I have the following database structure:
Event table
Id - Guid (PK)
Name - NVarChar
Description - NVarChar
SpecialEvent table
Id - Guid (PK)
StartDate - DateTime
EndDate - DateTime
I have an abstract Event class, and a SpecialEvent class that inherits from it. Eventually I will have a RecurringEvent class which will inherit from the Event class…