Click or drag to resize

IEntityCoreSetNewFieldValue Method (String, Object)

Sets the EntityField with the name fieldName to the new value value. Marks also the entityfields as dirty. Will refetch the complete entity's fields from the database if necessary (i.e. the entity is outofsync.).

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
bool SetNewFieldValue(
	string fieldName,
	Object value
)

Parameters

fieldName
Type: SystemString
Name of EntityField to set the new value of
value
Type: SystemObject
Value to set

Return Value

Type: Boolean
true if the value is actually set, false otherwise.
Exceptions
ExceptionCondition
ORMValueTypeMismatchExceptionThe value specified is not of the same IEntityField.DataType as the field.
ArgumentOutOfRangeExceptionThe value specified has a size that is larger than the maximum size defined for the related column in the databas
See Also