ASP.NET Zero Power Tools 2.0.2.1 2021
Click Here ->>> https://bltlly.com/2tvJvV
What's New in ASP.NET Zero Power Tools 2.0.2.1
ASP.NET Zero Power Tools is a Visual Studio extension that can help you create and manage your ASP.NET Zero projects faster and easier. It can automatically generate an entity and its layers from the database to the user interface, saving you time and effort. You can also use it to update your existing entities, run migrations, add localization texts, and more.
In this article, we will explore some of the new features and improvements in the latest version of ASP.NET Zero Power Tools, 2.0.2.1.
Support for Visual Studio 2022
One of the most exciting features of ASP.NET Zero Power Tools 2.0.2.1 is that it now supports Visual Studio 2022 (amd64), the latest version of Microsoft's flagship IDE. Visual Studio 2022 offers many enhancements and new capabilities for developers, such as faster performance, better collaboration, improved accessibility, and more.
To use ASP.NET Zero Power Tools with Visual Studio 2022, you can download and install it from the Visual Studio Marketplace or from Visual Studio's Extension and Updates menu[^1^].
Improved Entity Generation
Another major improvement in ASP.NET Zero Power Tools 2.0.2.1 is the enhanced entity generation feature. You can now create an entity from scratch by just defining its properties in a simple JSON format, without having to create a database table first. You can also specify the data annotations, validation rules, localization texts, and UI components for each property.
For example, you can create a Product entity with the following JSON:
{
\"name\": \"Product\",
\"properties\": [
{
\"name\": \"Name\",
\"type\": \"string\",
\"dataAnnotations\": [
{
\"name\": \"Required\"
},
{
\"name\": \"StringLength\",
\"parameters\": [
256
]
}
],
\"validationRules\": [
{
\"name\": \"required\"
},
{
\"name\": \"maxlength\",
\"parameters\": [
256
]
}
],
\"localizationTexts\": [
{
\"language\": \"en\",
\"text\": \"Name\"
},
{
\"language\": \"ar\",
\"text\": \"ØÙØØÙ \"
}
],
\"uiComponent\": {
\"type\": \"input\",
\"attributes\": {
\"type\": \"text\"
}
}
},
{
\"name\": \"Price\",
\"type\": \"decimal\",
...
},
...
]
}
After you enter this JSON in the Power Tools window, it will generate all the necessary files and code for the Product entity, such as:
The Product class in the .Core project.
The ProductDto class in the .Application project.
The ProductAppService class in the .Application project.
The ProductRepository class in the .EntityFrameworkCore project.
The ProductManager class in the .Domain project.
The ProductController class in the .Web.Host project.
The ProductController class in the .Web.Core project.
The ProductComponent class in the .Web.Mvc project.
The ProductComponent class in the .Web.Angular project.
The localization texts for the Product entity in the .Core project.
The database migration for the Product entity in the .EntityFrameworkCore project.
You can also update your existing entities by using the same JSON format and selecting the Update option in the Power Tools window. This will update all the files and code related to your entity according to your changes.
Other Improvements
ASP.NET Zero Power Tools 2.0.2.1 also includes some other minor improvements and bug fixes, such as:
Added support for nullable reference types. aa16f39245