Click or drag to resize

DataObjectVersion Class

Models a single version of a DataObject.
Inheritance Hierarchy
SystemObject
  Omada.OE.ModelDataObjectVersion

Namespace:  Omada.OE.Model
Assembly:  Omada.OE.Model (in Omada.OE.Model.dll) Version: 15.0.0.0
Syntax
C#
[SerializableAttribute]
public class DataObjectVersion : ICloneable, 
	IObjectWithId

The DataObjectVersion type exposes the following members.

Properties
  NameDescription
Public propertyCreatedBy
ID of the user who created the DataObject version.
Public propertyCreateTime
Date of creation of the DataObject version object.
Public propertyCurrent
True if the DataObjectVersion object represents the newest version of the DataObject.
Public propertyFirstVersion
Defines whether the version is the first version for the dataobject. The value of the FirstVersion attribute is readonly. Returns NotSet if the information is not available.
Public propertyFixedFields
The fixed fields that the data object has property-xml for.
Public propertyId
ID of the DataObjectVersion
Public propertyItemInt32
Retriever/assigner of values for a property. The data type of a value depends on the property type and data type: Value property - Text: string Value property - Integer: int Value property - DateTime: DateTime Value property - Decimal: double Value property - Boolean: bool Value property - Hyperlink: string Value property - TimeSpan: TimeSpan Value property - MultiLangText: string (value in active user's language) Value property - Xml: string Set property: int Reference property: int
Public propertyItemString
Retriever/assigner of values for a property. The data type of a value depends on the property type and data type: Value property - Text: string Value property - Integer: int Value property - DateTime: DateTime Value property - Decimal: double Value property - Boolean: bool Value property - Hyperlink: string Value property - TimeSpan: TimeSpan Value property - MultiLangText: string (value in active user's language) Value property - Xml: string Set property: int Reference property: int
Public propertyOwner
The data object that the version belongs to.
Public propertyProperties
Properies contains the values for the various properties that are used on the dataobjecttype that the dataobject belongs to. The collection is sorted on DataObjectVersionProperty.DataObjectTypeProperty.VOrder.
Public propertyReadInfo
Contains information on when the object was read by a user Can be null if it was not read or if the information was not loaded.
Top
Methods
  NameDescription
Public methodClone
The Clone metode is mainly used by DataObject.Clone
Public methodGetId
Returns the ID
Public methodGetPropertyValue(Int32)
Returns the value of property on the DataObjectVersion object. The value can be one of the following: string, int, datetime, double, bool, SetPropertyValue object or ReferencePropertyValue object. It can also by null, for a number of reasons: * The property was not found (it is not on the type) * The value is not loaded (ValueAvailable=false) * There is no value for the propery (if for instance the property has been added to the type at a later point) * The user does not have access to the property.
Public methodGetPropertyValue(Int32, DateTime)
Returns the DataTime property value based on the provided property ID from the latest dataobject version. If the value is null/undefined, the defaultValue is returned.
Public methodGetPropertyValue(Int32, String)
Returns the string representation of a property value on the DataObjectVersion object.
Public methodGetReferencePropertyValueId
Returns the value of a specific reference property. If more than one value are present the first is returned. If no value are present then 'default' is returned.
Public methodGetReferencePropertyValueIds
Returns a list of DataObjectIDs referenced to by the provided reference property.
Public methodGetReferencePropertyValues
Returns the values of the provided ReferenceProperty ID on the DataObjectVersion object. The collection can be empty, which can be caused by: * The property'en was not found (it is not on the type) * The values has not been read (ValueAvailable=false) * There are no values for propert * The active user does not have access to the property
Public methodGetSinglePropertyValueT(Int32, T)
Returns a single value for a property (fixed fields are not supported by this method).
Public methodGetSinglePropertyValueT(String, T)
Returns a single value for a property or a fixed field. Not all fixed fields are supported - please refer to the PropertyValuesContainer class for details.
Public methodHasNonEmptyPropertyWithLog
Returns true of the version contains at least one property with log on which a value is provided.
Public methodIsEqualTo(DataObjectVersion, Boolean)
Compares to dataobjectversions. Comparison is made on each of the property values. Returns true if the two object versions contains similar property values.
Public methodIsEqualTo(DataObjectVersion, IntegerList, Boolean)
Compares to dataobjectversions. Coparison is made on each of the property values. Returns true if the two object versions contains similar property values. Comparison is only made on the provided property ID's. If comparePropertyIds is empty all properties are compared.
Public methodIsPropertyChanged(DataObjectVersion, Int32)
Compares values for a property between to data object versions. Returns true if the versions contain different values.
Public methodStatic memberIsPropertyChanged(DataObjectVersion, DataObjectVersion, Int32)
Compares values for a property between to data object versions. Returns true if the versions contain different values.
Top
Extension Methods
  NameDescription
Public Extension MethodToBool
Converts object to boolean.
(Defined by ObjectExtensions.)
Public Extension MethodToDateTime
Converts object to DateTime.
(Defined by ObjectExtensions.)
Public Extension MethodToInt
Converts object to integer.
(Defined by ObjectExtensions.)
Top
See Also