Nhiberate, multiple tables, same class
Posted
by jeff
on Stack Overflow
See other posts from Stack Overflow
or by jeff
Published on 2010-06-10T20:36:24Z
Indexed on
2010/06/11
8:32 UTC
Read the original article
Hit count: 151
nhibernate
It's been asked a million times, its like this.
Say Invoice is the base class and InvoiceHistory is the class that simply inherits from Invoice.
When I do something like invoiceList = session.CreateCriteria(typeof(Invoice)).List();
I get everything from Invoice (that I want, plus everything from InvoiceHistory).
Do I need to have an InvoiceBase and create derived versions for Invoice and InvoiceHistory?
© Stack Overflow or respective owner