This discussion is archived
1 Reply Latest reply: May 30, 2013 10:51 AM by Christian.Shay - Oracle RSS

Fluent NHibernate mapping-discriminator

1010883 Newbie
Currently Being Moderated
I need to set more than one discriminate values for parent class. Is it possible to do and how?
For example:

PARENT_CLASS

DiscriminateSubClassesOnColumn("COLUMN_NAME", "X");

CHILD_CLASS_1

DiscriminatorValue("Y");

CHILD_CLASS_2

DiscriminatorValue("Z");

This is possible. But what if i have more than these 3 values in column "COLUMN_NAME"?

For example if "P" and "Q" are also possible values for that column what should i write?

DiscriminateSubClassesOnColumn("COLUMN_NAME", "X","P","Q"); Obviously this is not possible to write. But i don't know how to do this. Can someone help me?

Thanks.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points