Hi everyone,
I ran into a problem while trying SnapDevelop. I am trying to create simple REST API.
I have a DataStore, which is imported from PB. It uses stored procedure as a data source. That stored procedure takes 5 arguments.
I can create the DataStore in SnapDevelop, but when I call retrieve with all 5 arguments, I get an exception:
SqlException: Procedure or function 'xxx' expects parameter '@key', which was not supplied.
How can I fix that? I don't know any other way how to supply args except as parameters of retrieve.
Thanks in advance!
I have already solved the problem. Problem was, that the generator created the model class with DwSelect attribute eventhough it uses stored procedure as data source. I changed the attribute to DwProcedure and it works fine.
Thanks for your help!
Martin
"The generator created the model class with DwSelect attribute even though it uses stored procedure as data source".
Was the model class generated by an old version SnapDevelop?
If this bug still exists when generating a model class with SnapDevelop 2019 R2, I suggest that you submit a ticket on our support portal (at https://www.appeon.com/standardsupport).
Regards,
Logan