Hi! I'm trying to figure out how to handle this situation:
I have a customer entity and customer has orders, some orders are open, some orders are late. So can anyone help me to figure out how should I mapp this, If I want to extend the class and use the filter criteria in extending.
Code:
class Customer
{
String Name
{
get...
set...
};
IList<OpenInvoice> openInvoices
{
get...
set...
}
IList<UnpayedInvoice> unpayedInvoices
{
get...
set...
}
}
class Invoices
{
DateTime invoicingDate{
get...
set...
}
}
class OpenInvoice:Invoices
{
// if invoice date<=due date
Double openSum{
get...
set...
}
}
class UnpayedInvoice:Invoices
{
// if invoice date>due date
Double unpayedSum{
get...
set...
}
}