I attached a PB workspace to my SnapDevelop solution and used a datawindow to convert to data model. Later I scaffolded it to service and controller but they have only the RetrieveAsync method. How do I get the other Post, Put, Delete methods to scaffold? In the dialog, I see checkboxes for all the methods checked while scaffolding but it still does not add those methods to the controller or service. The datawindow has key columns and is updateable but getting only Retrieve method.
Using template -
- Any Client is generating Create and Retrieve methods.
- Non-PB Client is generating Create and Retrieve methods.
- PB Client is generating only Retrieve method.
In all cases, there is no Delete or Update methods scaffolded.
SnapDevelop 2021 build 1506
Yes. I think you are right. It should not generate the Create method if the .NET DataStore Model is non-updatable in the "Any Client" and "Non-PB Client" templates. Please submit this issue via our support ticketing system to ensure it is received by our tech support and tracked at: https://www.appeon.com/standardsupport/.
Regarding your second question, I think you need to make multiple copies of the Update Action, which is more convenient to authorize separately. You need to do it manually.
You can also try to define custom Scaffolding templates. But they are complicated and hard to debug.
Refer to: https://docs.appeon.com/snapdevelop2021/Scaffolding/index.html#viewing-and-editing-scaffolding-templates
Regards, Logan