I'm looking to do the following, imagine a scenario where you have an object:
public class ObjectA {
public virtual Guid Id;
public virtual string PropertyA;
public virtual string PropertyB;
public virtual string PropertyC;
public virtual string PropertyD;
}
And for reasons I wont go into, the database NEEDS to look like this:
----
Table: ObjectABase
----
Column Id
Column PropertyA
Column PropertyB
----
----
Table: ObjectAExtended
----
Column Id
Column PropertyC
Column PropertyD
----
The object is split between both tables and is referenced by the same Id so when you call Session.Save(... it will save to both tables.
Anyone any ideas how to do this or if its even possible?
Cheers.
EDIT: I have figured out the answer but can't post it for another 7 hours apparently. Will update tomorrow.