Click or drag to resize

FieldUtilitiesDetermineValueToSet Method

Determines the value to set for the field specified.

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.11.0.0 (5.11.23.1114)
Syntax
public static Object DetermineValueToSet(
	IFieldInfo fieldToSet,
	IFieldPersistenceInfo persistenceInfo,
	Object currentValue,
	out bool isConverted
)

Parameters

fieldToSet
Type: SD.LLBLGen.Pro.ORMSupportClassesIFieldInfo
The field to set.
persistenceInfo
Type: SD.LLBLGen.Pro.ORMSupportClassesIFieldPersistenceInfo
The persistence info.
currentValue
Type: SystemObject
The current value. Assumes a null value is specified as DBNull.Value, so currentValue is never null. There's no check for this as this method is called a lot and the call paths to this method are controlled. Usage of this method is with datareaders which all return DBNull.Value from GetValues.
isConverted
Type: SystemBoolean
flag which is set to true if the value was converted by a typeconverter

Return Value

Type: Object
the value to set the fieldToSet to. If the value to return is DBNull.Value, null is returned instead
See Also