DataObjectVersion Class |
Namespace: Omada.OE.Model
[SerializableAttribute] public class DataObjectVersion : ICloneable, IObjectWithId
The DataObjectVersion type exposes the following members.
Name | Description | |
---|---|---|
![]() | CreatedBy |
ID of the user who created the DataObject version.
|
![]() | CreateTime |
Date of creation of the DataObject version object.
|
![]() | Current |
True if the DataObjectVersion object represents the newest version of the DataObject.
|
![]() | FirstVersion |
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.
|
![]() | FixedFields |
The fixed fields that the data object has property-xml for.
|
![]() | Id |
ID of the DataObjectVersion
|
![]() | ItemInt32 |
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
|
![]() | ItemString |
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
|
![]() | Owner |
The data object that the version belongs to.
|
![]() | Properties |
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.
|
![]() | ReadInfo |
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.
|
Name | Description | |
---|---|---|
![]() | Clone |
The Clone metode is mainly used by DataObject.Clone
|
![]() | GetId |
Returns the ID
|
![]() | GetPropertyValue(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.
|
![]() | GetPropertyValue(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.
|
![]() | GetPropertyValue(Int32, String) |
Returns the string representation of a property value on the DataObjectVersion object.
|
![]() | GetReferencePropertyValueId |
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.
|
![]() | GetReferencePropertyValueIds |
Returns a list of DataObjectIDs referenced to by the provided reference property.
|
![]() | GetReferencePropertyValues |
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
|
![]() | GetSinglePropertyValueT(Int32, T) |
Returns a single value for a property (fixed fields are not supported by this method).
|
![]() | GetSinglePropertyValueT(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.
|
![]() | HasNonEmptyPropertyWithLog |
Returns true of the version contains at least one property with log on which a value is provided.
|
![]() | IsEqualTo(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.
|
![]() | IsEqualTo(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.
|
![]() | IsPropertyChanged(DataObjectVersion, Int32) |
Compares values for a property between to data object versions.
Returns true if the versions contain different values.
|
![]() ![]() | IsPropertyChanged(DataObjectVersion, DataObjectVersion, Int32) |
Compares values for a property between to data object versions.
Returns true if the versions contain different values.
|
Name | Description | |
---|---|---|
![]() | ToBool |
Converts object to boolean.
(Defined by ObjectExtensions.) |
![]() | ToDateTime |
Converts object to DateTime.
(Defined by ObjectExtensions.) |
![]() | ToInt |
Converts object to integer.
(Defined by ObjectExtensions.) |