Aimtec Generator Extension for Aimtec Data Integrator
Introduction
Visual Studio extension for generating files for Aimtec Data Integrator. This extension allows us to generate following:
Controllers
Models
Queries
Commands
Repositories
View Models
Features
Generate controllers for API.
Generate models for API.
Generate queries (OData) that return specified data in DB.
Generate commands that interact with data in DB.
Generate repositories.
Generator extension uses C# templates and PowerShell scripts to generate files needed for adding models, controllers, commands, queries, repositories and other files required or files that we need for our API. Additionally, the desired files can be generated through an OpenAPI specification.
Important
While using this extension, the main project (WebAPI) has to be selected.
Installation
Download the extension from Visual Studio Marketplace.
Open the .vsix file.
Choose target Visual Studio installation.
Click install.
Development
Any changes to code we make have to be committed. Committed code is then processed in Azure and uploaded to Visual Studio Marketplace. It is important to try and build the project before committing.
Development Flow:
Any changes to code have to be committed.
When releasing a bugfix, the only thing we have to do is commit the code.
When releasing a development, we have to label the commit with appropriate tag. In case of development, the middle version number is to be incremented and the last (3rd) version number resets to zero.
When releasing a new version containing major changes, we have to label the commit with appropriate tag as well. In case of major release, the first version number is to be incremented and both of the previous version numbers reset to zero.
After committing, the code is built using Azure Pipelines.
The built code is then released using Azure Pipelines. The final, released version of the extension is then uploaded to Visual Studio Marketplace.
Documentation
For more info, read our documentation in Microsoft OneNote. Currently, the documentation is located at: ASPWiki > Produkty > DEEPAPP > Aimtec Generator.