Click or drag to resize

DataObjectAddVersion Method (Boolean, Boolean, DataObjectType)

If a data object must be modified then a new version must be added first. This method adds a new version to the data object.

Namespace:  Omada.OE.Model
Assembly:  Omada.OE.Model (in Omada.OE.Model.dll) Version: 15.0.0.0
Syntax
C#
public DataObjectVersion AddVersion(
	bool assignCurrentValues,
	bool assignDefaultValues,
	DataObjectType dataObjectType
)

Parameters

assignCurrentValues
Type: SystemBoolean
If true all property values are copied from the current version of the data object to the new version.
assignDefaultValues
Type: SystemBoolean
If true then default values from the data object type will be assigned to the new version. A default value is only assigned if the version does not already contain a value for the property.
dataObjectType
Type: Omada.OE.ModelDataObjectType

Return Value

Type: DataObjectVersion
The added version object.
See Also