Method SetFieldAsFunction
- Namespace
- YndigoBlue.Velocity.Model
- Assembly
- YndigoBlue.Velocity.dll
SetFieldAsFunction(ISelectItem, Function)
Sets a field value to be calculated using a database function.
public void SetFieldAsFunction(ISelectItem selectItem, Function function)
Parameters
selectItemISelectItemThe column to set.
functionFunctionThe database function that will calculate the value.
Remarks
Common uses include UPPER(), LOWER(), NOW(), CURRENT_TIMESTAMP, etc.
SetFieldAsFunction(string, Function)
Sets a field value to be calculated using a database function.
public void SetFieldAsFunction(string fieldName, Function function)
Parameters
fieldNamestringThe name of the column to set.
functionFunctionThe database function that will calculate the value.
Remarks
Common uses include UPPER(), LOWER(), NOW(), CURRENT_TIMESTAMP, etc.