NHibernate class referencing discriminator based subclass
- by Rich
I have a generic class Lookup which contains code/value properties. The table PK is category/code. There are subclasses for each category of lookup, and I've set the discriminator column in the base class and its value in the subclass. See example below (only key pieces shown):
public class Lookup
{
public string Category;
public string Code;…