public void Update(VendorData data) { // copy the applicable properties, if they are valid UpdateInternalState(data); VendorDAO.Update(internalState); // from generated code }
public Vendor(VendorData data) { // initialize the internal state SetInitialState(); // copy the applicable properties, if they are valid UpdateInternalState(data); // insert new record IdType id = VendorDAO.Insert(internalState); internalState.VendorID = id; }
private Vendor(IdType vendorID) { internalState = VendorDAO.Load(vendorID); }
private Vendor(IdType vendorID) { internalState = VendorDAO.Load(vendorID); // from generated code }