AbpHelper is a tool that help you with developing Abp vNext applications.
Make sure backup your source files before using it!
-
Install AbpHelper CLI tool
dotnet tool install EasyAbp.AbpHelper -g
If you prefer GUI, there is also a tool with a fancy UI: AbpHelper.GUI
-
If you have previously installed it, update it with the following command:
dotnet tool update EasyAbp.AbpHelper -g
-
Use ABP CLI to create a test application
abp new MyToDo
-
Create an entity
public class Todo : FullAuditedEntity<Guid> { public string Content { get; set; } public bool Done { get; set; } }
-
Run AbpHelper
abphelper generate crud Todo -d C:\MyTodo
generate crud
is a sub command to generate CRUD filesTodo
specified the entity name we created earlier-d
specified the root directory of the ABP project, which is created by the ABP CLI
AbpHelper will generate all the CRUD stuff , even include adding migration and database updating!
-
Just rebuild your application and run. See the magic happens:)
- Run
abphelper -h
to see the general help - Similarly, you can use
-h
or--help
option to see detailed usage of each of the following command
-
generate
Generate files for ABP projects. See 'abphelper generate --help' for details
TODO: Describe how to custom the generating steps, and custom templates.
- More CLI parameters
- Support ABP module solutions
- Support MogoDB generation
- Support Angular UI generation