I am having some trouble depicting a DataBase Setup in NH.
I have the following Classes:
public class BaseData
{
public virtual long Id { get; set; }
}
public class ExtendedData : BaseData
{
public virtual string Name { get; set; }
}
The backing tables look like the following:
BaseTable
---------
* Id
ExtendedTable
-------------
* Id
* Name
Use case : I create an ExtendedData instance that I want to persist. I expect entries in both tables (with the same Id from a sequence).
Does anybody have an idea how to create a fluent mapping for this?
Thanks a lot in advance!
Seb