Click or drag to resize

DataObjectControllerPopulatePropertyValuesFromAVP Method

Populates the property values of a data object from a set of attribute value pairs. The data object is *not* saved.

Namespace:  Omada.OE.AppLogic
Assembly:  Omada.OE.AppLogic (in Omada.OE.AppLogic.dll) Version: 15.0.0.0
Syntax
C#
public static void PopulatePropertyValuesFromAVP(
	DataObject dataObject,
	NameValueCollection avp,
	bool useMIISConfiguration,
	SqlConnection dbConnection,
	SqlTransaction dbTransaction
)

Parameters

dataObject
Type: Omada.OE.ModelDataObject
Data object to be populated.
avp
Type: System.Collections.SpecializedNameValueCollection
A set of attribute value pairs. Keys are property system names (case-insensitive). Values are string representations of property values. The collection can contain several values for the same property if the property is a multi value reference-property (not set!). The format of the values must correspond to the table below: Property type Data type Value must be ------------- --------- ------------- Value Text Value Integer Value DateTime Must correspond to the format of XmlConvert.ToString(DateTime, XmlDateTimeSerializationMode.Utc); Value Decimal Must correspond to the format of XmlConvert.ToString(double); Value Boolean TRUE/FALSE (case-insensitive) Value Hyperlink NOT SUPPORTED Value TimeSpan An integer specifying a number of seconds. Set - Case-insensitive English name of a set property value. Reference - Key value OR display name of referred data object (case insensitive).
useMIISConfiguration
Type: SystemBoolean
If true the configuration settings regarding MIM Sync, present of the data object type properties, is used. If false then reference property values are always represented as the key property value of the referred data object.
dbConnection
Type: System.Data.SqlClientSqlConnection
dbTransaction
Type: System.Data.SqlClientSqlTransaction
See Also