Hi Folks,
Still sorta new to NHibernate - been using it for about a year now and loving it. I need to be able to map something like this:
Object: TestObject Property: IRole Position;
I have three objects that support the IRole interface: Collector, Corporal and Sergeant. Each role has it's own table in the database. I'd like to be able to say something like TestObject.Position.RoleName in my code after I've loaded up a bunch of TestObjects (RoleName is a required read only property according to the interface).
Thanx,
Eric
|