Click or drag to resize

IEntityFieldCoreCurrentValue Property

Gets the current value for this field and sets the new value for this field, by overwriting current value. The value in currentValue is discarded, versioning control has to save the original value of currentValue before this property is called.

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.7.0.0 (5.7.0)
Syntax
Object CurrentValue { get; set; }

Property Value

Type: Object
Exceptions
ExceptionCondition
ORMFieldIsReadonlyExceptionThe field is set to readonly and can't be changed.
ORMValueTypeMismatchExceptionThe value specified is not of the same IFieldInfo.DataType as this field.
Remarks
Calling this property directly will not trigger versioning control, thus calling this property directly is not recommended. Call IEntityCore.SetNewFieldValue(string, object) instead. Type of the new value has to be the same as IFieldInfo.DataType, which is set in the constructor. If this field is set to readonly, an exception is raised.
See Also