Hi,
What is the problem with these DBFunctionCalls?
Dim exp As IExpression = New DbFunctionCall("getdate", Nothing)
Employee.Fields(EmployeeFields.LastUpdatedDate.FieldIndex).ExpressionToApply = exp
Dim exp2 As New Expression(EmployeeFields.NAME)
Employee.Fields(EmployeeFields.Code.FieldIndex).ExpressionToApply = exp2
Employee.Save
The first one update the field LastUpdatedDate with the server date
The second one update the field Code with the contents of field Name (just for test)
When save the employee entity, the two fields(LastUpdatedDate,Code) are always saved null in db
Where is my mistake?