Is it possible to have a discriminator that works like this with NHibernate?
If the value equals String.Empty --> Class1 Else --> Class2
I already have a string column for CultureName and I would like to use it as a discriminator. I don't want to add an extra boolean column. If the CultureName is String.Empty then I would like to one class, else another one.
If it is not possible, could you help me find a way to do this.
I'm using xml mappings (not Fluent NHibernate).
What I'm searching for is something like a wildcard for the else (default) case so I can map like this :
<subclass name="Class1" discriminator-value="">
<subclass name="Class2" discriminator-value="*">