public void Update(VendorData data)
 {
     // copy the applicable properties, if they are valid
     UpdateInternalState(data);
     VendorDAO.Update(internalState);
     // from generated code
 }
Exemplo n.º 2
0
        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;
        }
Exemplo n.º 3
0
 private Vendor(IdType vendorID)
 {
     internalState = VendorDAO.Load(vendorID);
 }
 private Vendor(IdType vendorID)
 {
     internalState = VendorDAO.Load(vendorID);
     // from generated code
 }