The CDS for Code extension will call out to the SvcUtil.exe application to generate strongly typed code for your project to use when communicating with CDS. You can read more about creating early bound entity classes here.
To generate entities using the command palette:
When put into action it will look similar to this:
To generate entites from VSCode File Explorer:
Generating code from File Explorer will look similar to this:
CDS for Code allows for customizing the output of CrmSvcUtil.exe utelizing a CloudSmith utility library. This library allows for configuring the code generation process using a configuration file. CDS for Code will help you generate and customize this file. You can see documentation on configuring this file manually here.
A customizable CrmSvcUtil configuration file can be created by:
Here’s an example of creating one in a templated plugin project:
Right-clicking your config file in VSCode File Explorer will present you the option of editing this configuration using our configuration tool.
In your editor, it will look something like this:
Once you have a customized CrmSvcUtil configuration file, it can be used in place of the default configuration to generate early bound entities.
Inside of VSCode File Explorer:
Here’s an example of what you will see when right-clicking the file:
This will kick off the code generation process.