This extension empowers you to streamline your Clean Architecture project development within VS Code. Access a suite of convenient right-click menu functions to accelerate repetitive tasks and enhance your coding efficiency, exclusively for projects using the .NET programming language.
Features
Create Template Clean Architecture: Instantly generate a well-structured Clean Architecture project directory hierarchy with essential folders for entities, use cases, interfaces, and more. This solid foundation saves you time and ensures consistent organization.
Create InitModel: Effortlessly create an initial model class within your project. Simply right-click within a suitable directory, and your extension will generate the boilerplate code, ready for customization. This eliminates manual setup and expedites model creation.
Generate Model From Database: Bridge the gap between your database schema and your code. Right-click on a database table or schema selection, and the extension will auto-generate a corresponding model class based on the table structure. This significantly reduces the time and effort required for model mapping. Before using this feature, you need to change your connectionString in the appsettings.json file located in the CleanArchitecture.API folder.
Create Template API: Generate a comprehensive API template structure based on the existing model files within your project. Right-click within the appropriate folder (such as the entities folder) and let the extension take care of creating essential files like controllers, services, and potentially DTOs (Data Transfer Objects). This streamlines the process of building out your Clean Architecture API layer.
NOTE: The Generate Model From Database feature does not support a non-relational (NoSQL) data structure.
Requirements
You need to have Python installed on your machine.
If you haven't installed Python yet, please download and install Python
Known Issues
This extension helps you establish a fundamental logical structure that you can easily apply to your project without encountering deployment difficulties with the features above. However, you also need to review the layers and their operations to ensure that your models and APIs work correctly.