Mapping One-to-One subclass in Fluent NHibernate

Posted by Mike C. on Stack Overflow See other posts from Stack Overflow or by Mike C.
Published on 2010-06-13T23:05:36Z Indexed on 2010/06/13 23:12 UTC
Read the original article Hit count: 227

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 also. I'd like to map the SpecialEvent class while preserving a one-to-one relationship mapped with the Ids, if possible. Can anybody point me in the correct direction? Thanks!

© Stack Overflow or respective owner

Related posts about fluent-nhibernate

Related posts about nhibernate-mapping