| UtilsGetReferredIdentityID Method |
Returns the id of an identity, that is referred through a reference property on a data object.
If the referred data object is a user, and not an identity, the id is converted to an identityId.
If the id of the reference property is 0 then the identityId of the user, who created the data object, is returned.
If the referred user (or creator) doesn't have an identity then zero is returned.
Namespace:
Omada.OE.Solution.OIM.AppLogic
Assembly:
Omada.OE.Solution.OIM.AppLogic (in Omada.OE.Solution.OIM.AppLogic.dll) Version: 15.0.0.0
Syntaxpublic static int GetReferredIdentityID(
int dataObjectId,
int refPropertyId,
out int identityUserId,
SqlConnection dbConnection,
SqlTransaction dbTransaction
)
Parameters
- dataObjectId
- Type: SystemInt32
Id of a data object that has a reference (through a reference property) to an identity.
- refPropertyId
- Type: SystemInt32
Id of a reference property present on the data object.
The reference property must refer either an identity or a user.
If specified as 0 the (identityId of the) creator of the data object is returned.
- identityUserId
- Type: SystemInt32
Holds the userId of the returned identityId.
Can be zero if no user exists for the identity.
- dbConnection
- Type: System.Data.SqlClientSqlConnection
- dbTransaction
- Type: System.Data.SqlClientSqlTransaction
Return Value
Type:
Int32
See Also