1. Code :: Old code it long and waste memory.
SalesTable tmpSalesTable ;
;
SELECT * FROM tmpSalesTable
WHERE tmpSalesTable.SalesId == this.RefSalesId ;
return Country::name( tmpSalesTable.DeliveryCountry);
2. Code :: New code it short and easy. But you use this code. In Table have Method find.
return Country::name( SalesTable::find(this.RefSalesId).DeliveryCountry);
No comments:
Post a Comment