EntityCoreTFieldsGetValue Method |
Gets the value of the field with the index specified.
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.12.0.0 (5.12.0)
Syntaxprotected Object GetValue(
int fieldIndex,
bool returnDefaultIfNull
)
Protected Function GetValue (
fieldIndex As Integer,
returnDefaultIfNull As Boolean
) As Object
Parameters
- fieldIndex
- Type: SystemInt32
Index of the field. - returnDefaultIfNull
- Type: SystemBoolean
helper flag which signals the method if a default value should be obtained for the type of the field or not if
the value is null.
Return Value
Type:
Objectthe value of the field
ExceptionsException | Condition |
---|
ORMEntityOutOfSyncException | When the entity is out of sync and needs to be refetched first. |
ORMEntityIsDeletedException | When the entity is marked as deleted. |
ArgumentOutOfRangeException | When fieldIndex is smaller than 0 or bigger than the amount of fields in the fields collection. |
See Also