Click or drag to resize

SimpleDataObject Class

SimpleDataObject
Inheritance Hierarchy
SystemObject
  Omada.OE.ModelSimpleDataObject

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

The SimpleDataObject type exposes the following members.

Constructors
  NameDescription
Public methodSimpleDataObject
Constructor taking all the readonly attributes of the object
Top
Properties
  NameDescription
Public propertyDataObjectTypeId
ID of the DataObjectType object
Public propertyDeleted
Returns true of the object is deleted
Public propertyDisplayName
DisplayName of the object
Public propertyId
ID of the object
Public propertyParentId
ParentId of the object
Public propertyTemplate
Returns true of the object is a template.
Public propertyUId
UID of the object
Top
Methods
  NameDescription
Public methodClone
Public methodToString
Returns the DispalyName of the object
(Overrides ObjectToString.)
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
Explicit Interface Implementations
  NameDescription
Explicit interface implementationPrivate methodIObjectWithId.GetId
Explicit interface implementationPrivate propertyIDataObjectChangeTime
States the date and time the data object last was changed. The ChangeTime is not necessarily equal to the CreateTime of the newest version of the data object since the ChangeTime may be updated independently for ILM integration purposes.
Explicit interface implementationPrivate propertyIDataObjectCreateTime
States the date and time the data object was created.
Explicit interface implementationPrivate propertyIDataObjectDisplayName
States the display name of the data object.
Explicit interface implementationPrivate methodIDataObjectGetPropertyValue(Int32, IEnumerableInt32)
Returns the value(s) of a Set property or a Reference property. If the property is a Set property the Ids of the selected Set Property Values are returned. If the property is a Reference property the Ids of the selected Data Objects are returned. Throws an exception if: - The property doesn't exist - The property is not present in the data object type - The property is not of the right type and data type - The value of the property is not available (because it has not been loaded) - The value of the property is not accessible due to security
Explicit interface implementationPrivate methodIDataObjectGetPropertyValue(Int32, Int32)
Returns the value of a Value property with data type 'Integer' or a Set property or a Reference property. If the property is a Set property the Id of the selected Set Property Value is returned. If the Set property has more than one selected values then a random one of those is returned. If the property is a Reference property the Id of the selected Data Object is returned. If the Reference property has more than one selected values then a random one of those is returned. Throws an exception if: - The property is not found - The property is not of the right type and data type - The value of the property is not available (because it has not been loaded) - The value of the property is not accessible due to security
Explicit interface implementationPrivate methodIDataObjectGetPropertyValue(Int32, String)
Returns the string value of a property. If the property is a Value property it must be of data type 'Text' or 'MultiLangText'. If the property is a Set property the Name of the (first) selected value is returned. If the property is a Reference property the DisplayName of the (first) selected value is returned. Throws an exception if: - The property doesn't exist - The property is not present in the data object type - The property is not of the right type and data type - The value of the property is not available (because it has not been loaded) - The value of the property is not accessible due to security
Explicit interface implementationPrivate methodIDataObjectGetPropertyValue(String, Boolean)
Returns the value of a Value property with data type 'Boolean'. Throws an exception if: - The property is not found - The property is not of the right type and data type - The value of the property is not available (because it has not been loaded) - The value of the property is not accessible due to security
Explicit interface implementationPrivate methodIDataObjectGetPropertyValue(String, IEnumerableInt32)
Returns the value(s) of a Set property or a Reference property. If the property is a Set property the Ids of the selected Set Property Values are returned. If the property is a Reference property the Ids of the selected Data Objects are returned. Throws an exception if: - The property doesn't exist - The property is not present in the data object type - The property is not of the right type and data type - The value of the property is not available (because it has not been loaded) - The value of the property is not accessible due to security
Explicit interface implementationPrivate methodIDataObjectGetPropertyValue(String, DateTime)
Returns the value of a Value property with data type 'DateTime'. Throws an exception if: - The property is not found - The property is not of the right type and data type - The value of the property is not available (because it has not been loaded) - The value of the property is not accessible due to security
Explicit interface implementationPrivate methodIDataObjectGetPropertyValue(String, Double)
Returns the value of a Value property with data type 'Decimal'. Throws an exception if: - The property is not found - The property is not of the right type and data type - The value of the property is not available (because it has not been loaded) - The value of the property is not accessible due to security
Explicit interface implementationPrivate methodIDataObjectGetPropertyValue(String, Guid)
Returns the value of Set property. The UId of the selected Set Property Value is returned. If the Set property has more than one selected values then a random one of those is returned. Throws an exception if: - The property doesn't exist - The property is not present in the data object type - The property is not of the right type and data type - The value of the property is not available (because it has not been loaded) - The value of the property is not accessible due to security
Explicit interface implementationPrivate methodIDataObjectGetPropertyValue(String, Int32)
Returns the value of a Value property with data type 'Integer' or a Set property or a Reference property. If the property is a Set property the Id of the selected Set Property Value is returned. If the Set property has more than one selected values then a random one of those is returned. If the property is a Reference property the Id of the selected Data Object is returned. If the Reference property has more than one selected values then a random one of those is returned. Throws an exception if: - The property is not found - The property is not of the right type and data type - The value of the property is not available (because it has not been loaded) - The value of the property is not accessible due to security
Explicit interface implementationPrivate methodIDataObjectGetPropertyValue(String, String)
Returns the string value of a property. If the property is a Value property it must be of data type 'Text' or 'MultiLangText'. If the property is a Set property the Name of the (first) selected value is returned. If the property is a Reference property the DisplayName of the (first) selected value is returned. Throws an exception if: - The property doesn't exist - The property is not present in the data object type - The property is not of the right type and data type - The value of the property is not available (because it has not been loaded) - The value of the property is not accessible due to security
Explicit interface implementationPrivate methodIDataObjectGetPropertyValue(String, TimeSpan)
Returns the value of a Value property with data type 'TimeSpan'. Throws an exception if: - The property is not found - The property is not of the right type and data type - The value of the property is not available (because it has not been loaded) - The value of the property is not accessible due to security
Explicit interface implementationPrivate methodIDataObjectGetPropertyValues
Returns a dictionary with the property values of the data object. The keys in the dictionary are the system names of the properties. Not all properties are present in the dictionary. The following are excluded: - Text properties with log - Hyperlink properties - Properties w. denied access - Properties w. an inavailable value The data type of the property value depends on the type and data type of the property: - Set property: IEnumerable int of SetPropertyValue ids - Reference property: IEnumerable<IReferencePropertyValue> - Value property - Text: string - can be null - Value property - Integer: int - can be null - Value property - DateTime: DateTime - can be null - Value property - Decimal : double - can be null - Value property - Boolean : bool - can be null - Value property - TimeSpan : TimeSpan - can be null - Value property - Multilang. text : string with value in active user's language - can be null
Explicit interface implementationPrivate propertyIDataObjectId
States the Id of the data object.
Explicit interface implementationPrivate propertyIDataObjectNumber
States the Number of the data object.
Explicit interface implementationPrivate propertyIDataObjectParentId
States the Id of the data object which is the parent of the data object.
Explicit interface implementationPrivate propertyIDataObjectTemplate
States whether the data object is a template. Template data objects are either: process templates, activity templates or target object templates.
Explicit interface implementationPrivate propertyIDataObjectTypeId
States the data object type id of the data object.
Explicit interface implementationPrivate propertyIDataObjectUId
States the UId of the data object.
Top
See Also