Click or drag to resize

EntityCoreTFieldsSetNewFieldValue Method (Int32, Object, Boolean)

Note: This API is now obsolete.

Sets the Entity Field on index fieldIndex to the new value value. Marks also the entityfields2 as dirty.

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.4.0.0 (5.4.0)
Syntax
[ObsoleteAttribute("This method is obsolete, starting with v2.5. Use SetValue() instead", 
	true)]
protected bool SetNewFieldValue(
	int fieldIndex,
	Object value,
	bool fireChangeEvent
)

Parameters

fieldIndex
Type: SystemInt32
Index of EntityField2 to set the new value of
value
Type: SystemObject
Value to set
fireChangeEvent
Type: SystemBoolean
if set to true, the change event is fired if the value is set, if applicable. If set to false, the caller is responsible for calling the change event mechanism, recommended is then: PostFieldValueSetAction()

Return Value

Type: Boolean
true if the value is actually set, false otherwise.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionWhen fieldIndex is smaller than 0 or bigger than the amount of fields in the fields collection.
See Also