| DataObjectControllerGetPropertyValue Method (Int32, Int32, IListInt32, SqlConnection, SqlTransaction) |
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.
The method doesn't consider the security model.
The method doesn't consider whether the data object is marked as deleted.
Throws an exception if:
- The data object doesn't exist
- The property doesn't exist or it is not a Set property or a Reference property.
Namespace:
Omada.OE.AppLogic
Assembly:
Omada.OE.AppLogic (in Omada.OE.AppLogic.dll) Version: 15.0.0.0
Syntaxpublic static IList<int> GetPropertyValue(
int dataObjectId,
int propertyId,
IList<int> defaultValue,
SqlConnection dbConnection,
SqlTransaction dbTransaction
)
Parameters
- dataObjectId
- Type: SystemInt32
Id of the data object from which the property value(s) must be obtained.
- propertyId
- Type: SystemInt32
Id of the property for which the value(s) must be obtained.
- defaultValue
- Type: System.Collections.GenericIListInt32
defaultValue is returned if:
- the data object doesn't have a value for the property.
- dbConnection
- Type: System.Data.SqlClientSqlConnection
An open database connection.
- dbTransaction
- Type: System.Data.SqlClientSqlTransaction
Database transaction - can be null.
Return Value
Type:
IListInt32
See Also