I have a class with several calculated properties. I would like to add these properties to the projected sql table so that I can query on them. However, I noticed that calculated properties are not projected into the sql table by default. To get them to project into the sql table, the keyword SqlComputeCode must be added in brackets after specifying the data type
Property Age As %String [SqlComputeCode...]
However, I'm unsure of the exact syntax to be used here and didn't find the documentation about it particularly helpful (I think Intersystems needs to show more examples). Because the property is calculated I already have a get method for it to do the calculation.
Method AgeGet() As %String
{
...
Quit "Something"
}
I just want to use the calculation in this get method in my sql table projection. Can anyone help me out? Thanks in advance...