Hello, I have implemented an ASP .NET Core Web API project that uses datawindows created in PowerBuilder to read data.
Following the tutorial I was able to easily create an API which, after converting the datawindow into a C# Model, reads the data from the database.
Now I'm having problems with the computed fields of a datawindow. In the C# Model the computed fields are present and report the expression for the evaluation however when the API is called these fields are not valued and remain null.
This is the PowerBuilder datawindow with computed fields and their relative expressions.
This is the C# Model auto generated
...and this is the API response
I noticed that in the C# Model in the computed fields there are these two notations: JsonIgnore and IgnoreDataMember. I thought they might be why the computed fields weren't returned in the API response but even removing them the result doesn't change.
Can someone with more SnapDevelop experience help me out?
TargetFramework .NET 6
Thank you all