Hi,
I have been using nHibernate for a while, and follow the development mailing list, but it's my first post here.
I have a problem with proxies, which I was wondering what the "prefered" solution is.
I have a inherence structure like this:
Code:
base
sub1
sub1a
sub2
sub2a
I have interfaces for each (same inheritence structure), and set the use them for the proxys.
The classes are mapped as "joined sub classes", with a table for each (sub)type
My question is, what is the best way of establishing the type of an object loaded through the proxy? Clearly the:
Code:
obj is sub1
construct isn't going to work as the proxy implements all the interfaces.
Any ideas would be appreciated!
Dries.