Click or drag to resize
EntityCoreTFieldsSetNewFieldValue 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.2.0.0 (5.2.17.0403)
Syntax
public 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.

Implements

IEntityCoreSetNewFieldValue(String, Object)
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