Save Operation

The Save operation saves a record to the local database. In the case of an existing record, a Save operation calls the Update operation. If a record does not exist, the Save operation creates a new record. If Save is called on the parent MBO in an existing composite object, the Save operation will also be called on all the child objects in the composite object.

//Update an existing customer
Customer cust = Customer.FindById(101);
cust.Save();

//Insert a new customer
Customer cust = new Customer();
cust.Save();