|
In order to achieve the desired effect from the code above, thedeveloper will need to
create a custom implementation of the "!=" operator for the Addressclass (and presumably
the "==" also) which will of course be language specific.
Another way to do this without creating a new reference object is tosimply
use o.Customer directly:
if (o.Customer.ShipToAddress != o.Customer.MailingAddress)
although they do not separate the DB access from the final object.
This way you can regenerate the base class without losing the custom
code. How do you guys handle that?
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.