- Chris Lerwill
- PowerServer
- Thursday, 30 March 2023 03:53 PM UTC
I am in the process of attempting to convert a client-server application to be delivered by PowerServer. After I publish the AppModels and run the application I am finding the most common issue is in a c# model generated for a datawindow that has columns having a "Number" datatype. The generated model usually gets a "double?" datatype but when I view the column it is being mapped for, that column is defined as an INT in SQL Server.
Below is an example of how the column is defined in the source editor of a datawindow...
column=(type=number updatewhereclause=no name=rth_id dbname="rth_id" )
My application has many datawindows and this has been found to be an issue in hundreds of them. When I do a search in the IDE there are 3000+ instances.
To date, I manage this issue by using a text editor to do a mass search-and-replace on the c# models. Is there a setting I am missing in SnapDevelop that will allow me to tell the model generation process to use Int32 for any datawindow columns having a "number" datatype?
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.