Saves the specified persistent object to a data store.
An object which represents the persistent object to save.
Below is an example of using the Save method. Here, session is the Session instance.
Person personToUpdate = session.FindObject<Person>(CriteriaOperator.Parse("Name='Michael Suyama'")); personToUpdate.Birthday = new DateTime(1986, 10, 31); session.Save(personToUpdate);
The Save method also saves all the referenced objects that are aggregated (see the AggregatedAttribute topic for information) and any referenced newly created non-aggregated objects that don't yet exist in the data store.