Learner520 wrote:
My question is if I Implement 2nd option will this improve or make worse web page performance.
You won't get any performance problems. Readability, maintainability and choice of design is all matters here. Also inheriting all the classes from sales just to get the common fields is not a good idea. How about a design like,
Order
orderid, orderdate
Invoice
invoiceid, invoicedate
Email
emailid, emaildate
Sales
saleid, Order, Invoice, Email, timesheetid, timesheetdate.
Sales class contains references to related classes. So to get an order id from a sales object, you could write salesObject.Order.orderid. You are not repeating any properties here. BTW, I don't prefix cls to my classes. :)
Best wishes, Navaneeth