Click or drag to resize

PropertyValuesContainer Class

Represents value(s) for a number of properties and fixed fields - typically values that are assigned to a data object. The PropertyValuesContainer validates that the data type of the value(s) correspond to the properties/fields they are for.
Inheritance Hierarchy
SystemObject
  Omada.OE.ModelPropertyValuesContainer

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

The PropertyValuesContainer type exposes the following members.

Constructors
  NameDescription
Public methodPropertyValuesContainer(PropertyValuesContainer)
Assigns property values from another container.
Public methodPropertyValuesContainer(DataObject, IEnumerableInt32)
Creates a container with the property values for the "last version" of a data object.
Public methodPropertyValuesContainer(DataObject, IEnumerableString)
Creates a container with the property and fixed field values for the "last version" of a data object.
Public methodPropertyValuesContainer(DataObjectVersion, IEnumerableInt32)
Creates a container with the property values for a data object version.
Public methodPropertyValuesContainer(DataObjectVersion, IEnumerableString)
Creates a container with the property and fixed field values for a data object version.
Public methodPropertyValuesContainer(IEnumerableBaseProperty, Boolean, Boolean)
Top
Properties
  NameDescription
Public propertyItem
Holds the property / fixed field values. The data type of each value in the enumeration for an entry is determined by the property or fixed field:

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 property - Xml: string Set property: int Reference property: int CreateTime: DateTime ChangeTime: DateTime DeleteTime: DateTime ActiveTime: DateTime CompleteTime: DateTime FirstActiveTime: DateTime CreatedBy: int ChangedBy: int DeletedBy: int Number: int Type: int ActivityState: int ProcessState: int Acceptance: int ActPctComplete: int Id: int UserName: string DisplayName: string Template: bool Locked: bool ActivityAbsDuration: TimeSpan ActivityDuration: TimeSpan ProcessAbsDuration: TimeSpan ProcessDuration: TimeSpan

A Value property can have zero or one value. Set- and Reference-properties can have zero or one value. Some Set- and Reference-properties also allow multiple values. Fixed fields can have zero or one value. Note that the container can be instantiated in a mode where all "set type" properties and fixed fields allow multiple values.

For hyperlink properties the value is the url. For Multi Language Text properties the value is in the active users language.

Public propertyKeys
Names of the contained properties and fixed fields.
Top
Methods
  NameDescription
Public methodAllowsMultipleValues
Public methodAssignValues
Adds/replaces the value(s) of a property.
Public methodClone
Makes a copy
Public methodContains(Int32)
Returns true if the container has an entry for a property. Note: can't be used to query for a fixed field!
Public methodContains(String)
Returns true if the container has an entry for a property or fixed field.
Public methodStatic memberConvertToAssignableValue
Converts a value to a format that can be assigned to the indexer property (or delivered to the AssignValues() method).
Public methodGetDataType
Returns the data type that the value(s) for a property/field are expected to be of.
Public methodGetPropertyType
Returns the property type of a specified key. Throws if the key is not allowed in the container or if it doesn't denote a property (but a fixed field).
Public methodGetSingleValue(String)
Returns a single value for a property. If the property has no value(s) then null is returned.
Public methodGetSingleValueT(Int32, T)
Returns a single value for a property (fixed fields are not supported by this method).
Public methodGetSingleValueT(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 methodHasEqualValues
Returns whether the value(s) of a property are equal to the values of the same property in another container. If the property contains multiple values then the order of them is considered insignificant.
Public methodIsProperty
Returns true if the specified key denotes a property - false if it denotes a fixed field. Throws if the key is not allowed in the container.
Public methodToDictionary
Public methodToListT(Int32)
Public methodToListT(String)
Public methodValueCount
Returns the number of values that the container has for a property or fixed field.
Top
Fields
  NameDescription
Public fieldpropertyValues
Doesn't always contain an entry for all allowed properties and fixed fields. Keys in the dictionary are property system names or fixed field names. Values are collections of property 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