Click or drag to resize

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.9.0.0 (5.9.0)
Syntax
protected Object GetValue(
	int fieldIndex,
	bool returnDefaultIfNull
)

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: Object
the value of the field
Exceptions
ExceptionCondition
ORMEntityOutOfSyncExceptionWhen the entity is out of sync and needs to be refetched first.
ORMEntityIsDeletedExceptionWhen the entity is marked as deleted.
ArgumentOutOfRangeExceptionWhen fieldIndex is smaller than 0 or bigger than the amount of fields in the fields collection.
See Also