Warning
This project is no longer maintained, and the repository is archived. The last release is 0.29.0 on NuGet. It is not updated for ABP 11 or later. To create solutions and add modules, use ABP Studio. To scaffold entities, CRUD code and other features, a coding agent working in your solution now does what this tool did, following your project's own conventions.
AbpHelper is a tool that help you with developing Abp vNext applications.
Make sure to backup your source files before using it!
-
Install AbpHelper CLI tool
dotnet tool install EasyAbp.AbpHelper -gIf 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 an ABP 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:\MyTodogenerate crudis a sub command to generate CRUD filesTodospecified the entity name we created earlier-dspecified the root directory of the ABP project, which is created by the ABP CLI
AbpHelper will generate all the CRUD stuffs , even include adding migration and database updating!
-
Run the
DbMigratorto seed the database -
Startup your application
-
Login with the default admin account, and see the magic happens!
If you don't see the TODO menu, check your permissions and make sure the TODO related permissions are granted
- Run
abphelper -hto see the general help - Similarly, you can use
-hor--helpoption to see detailed usage of each of the following commands
-
generate
Generate files for ABP projects. See 'abphelper generate --help' for details
-
crud
Generate a set of CRUD related files according to the specified entity
-
service
Generate service interface and class files according to the specified name
-
methods
Generate service method(s) according to the specified name(s)
-
localization
Generate localization item(s) according to the specified name(s)
-
controller
Generate controller class and methods according to the specified service
-
-
ef
A shortcut to run 'dotnet ef' commands. See 'abphelper ef --help' for details
-
module
Help quickly add/update/remove ABP modules. See 'abphelper module --help' for details
