public Shipper(VendorDS.VendorTableRow vendor) { //Constructor try { if (vendor != null) { this._number = vendor.NUMBER; if (!vendor.IsNAMENull()) { this._name = vendor.NAME; } if (!vendor.IsSTATUSNull()) { this._status = vendor.STATUS; } if (!vendor.IsADDRESS_LINE1Null()) { this._address_line1 = vendor.ADDRESS_LINE1; } if (!vendor.IsADDRESS_LINE2Null()) { this._address_line2 = vendor.ADDRESS_LINE2; } if (!vendor.IsCITYNull()) { this._city = vendor.CITY; } if (!vendor.IsSTATENull()) { this._state = vendor.STATE; } if (!vendor.IsZIPNull()) { this._zip = vendor.ZIP; } if (!vendor.IsZIP4Null()) { this._zip4 = vendor.ZIP4; } if (!vendor.IsUSERDATANull()) { this._userdata = vendor.USERDATA; } if (!vendor.IsLocationIDNull()) { this._locationID = vendor.LocationID; } } } catch (Exception ex) { throw new ApplicationException("Unexpected exception creating new shipper instance.", ex); } }
public Vendor(VendorDS.VendorTableRow vendor) : base(vendor) { //Constructor try { } catch (Exception ex) { throw new ApplicationException("Unexpected error while creating new vendor instance.", ex); } }