QuickObjects.ObjectBase Send comments on this topic.
Update Method
See Also 
Akal.QuickObjects.ObjectBase Namespace > BaseBusinessObject Class : Update Method

Update

Runs an Update command with the fields marked with UseInSave as true. This method expects that all the primary key values have been specified.

If the Recursive property is set to anything other than None this Update will further call Update methods of the joined objects as well.

This method will reset the AffectedRecords property to the number of rows updated.

Business object must have at least one primary key field defined for this operation to work.

NOTE: As of version 3.x this method preserves each field's UseInSearch values, and does not reset any of the property values unlike the version 2.x and older did. Also starting version 3.x this method will retain any updated values for a later sync/save process if the ObjectState property is set to Disconnected. If the ObjectState property is set to Connected then the Update command is sent to the database immediatly.

Returns:
Type
System.Boolean

Overload List

OverloadDescription
Update()Update

Runs an Update command with the fields marked with UseInSave as true. This method expects that all the primary key values have been specified.

If the Recursive property is set to anything other than None this Update will further call Update methods of the joined objects as well.

This method will reset the AffectedRecords property to the number of rows updated.

Business object must have at least one primary key field defined for this operation to work.

NOTE: As of version 3.x this method preserves each field's UseInSearch values, and does not reset any of the property values unlike the version 2.x and older did. Also starting version 3.x this method will retain any updated values for a later sync/save process if the ObjectState property is set to Disconnected. If the ObjectState property is set to Connected then the Update command is sent to the database immediatly.

Returns:
Type
System.Boolean
 

Update(DataRow)Update

Runs an Update command with the fields marked with UseInSave as true. This method expects that all the primary key values have been specified.

If the Recursive property is set to anything other than None this Update will further call Update methods of the joined objects as well.

This method will reset the AffectedRecords property to the number of rows updated.

Business object must have at least one primary key field defined for this operation to work.

NOTE: As of version 3.x this method preserves each field's UseInSearch values, and does not reset any of the property values unlike the version 2.x and older did. Also starting version 3.x this method will retain any updated values for a later sync/save process if the ObjectState property is set to Disconnected. If the ObjectState property is set to Connected then the Update command is sent to the database immediatly.

Returns:
Type
System.Boolean
 

Requirements

Target Platforms: .NET Framework 1.1 or .NET Framework 2.0

See Also