Coder Social home page Coder Social logo

abp-cli-gen-tool's Introduction

DotNet Cli 工具

一个简单的Abp代码辅助生成工具。

NuGet

一键生成实体的

  • repository
  • app service
  • http controller (从 app service 生成)
  • typescript types (基于 openapi)
  • typescript service (基于 openapi)

如何使用

  1. 安装 dotnet tool install --global Passingwind.AbpProjectTools
  2. 在项目根目录,打开命令行,输入 abptool gen backend <command> <options>

举例:生成实体 ProductRepository : abptool gen backend repository --project-name Demo --name Product --slu-dir d://work/MyProject

更多命令和参数使用 --help 查看

后端相关命令

> abptool gen backend --help

backend

Usage:
  AbpProjectTools [options] generate backend [command]

Options:
  --slu-dir <slu-dir> (REQUIRED)            The solution root dir
  --name <name> (REQUIRED)                  The Domain entity name
  --project-name <project-name> (REQUIRED)  The project name
  --overwrite                               [default: False]
  --templates <templates>                   The template files directory
  -?, -h, --help                            Show help and usage information

Commands:
  domain-service                           生成一个DomainService文件
  repository                               生成对应的 IRepository 和 EfRepository 文件
  app-service                              生成对应的 AppService 文件
  http-controller                          生成 HttpAPI Controller 文件,基于 AppService

前端相关命令

> abptool gen fontend --help
fontend

Usage:
  AbpProjectTools [options] generate fontend [command]

Options:
  -?, -h, --help  Show help and usage information

Commands:
  ts                                        生成后端 api 对应的 typescript 的相关文件(types和service),基于 openapi 。

abp-cli-gen-tool's People

Contributors

jxnkwlp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.