GithubHelp home page GithubHelp logo

jangocheng / 52abp.codegenerator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 52abp/52abp.codegenerator

0.0 1.0 0.0 254 KB

52ABP的代码生成器,反馈收集问题和文档信息。下载地址

Home Page: https://marketplace.visualstudio.com/items?itemName=werltm.52ABPCodeGenerator

License: MIT License

52abp.codegenerator's Introduction

52ABP.CodeGenerator

52ABP的代码生成器,反馈收集问题和文档信息。

前言

但是这个月好歹抽空做了一些事情,嗯。就是一直说的ABP 的新版本代码生成器,之前的代码生成器大家说不支持.NET CORE。 现在这个版本终于支持了。 也算是兑现了承诺。

ABP Code Generator 是基于ABP(ASP.NET Boilerplate)框架制作的代码生成器,可以用于大家在日常开发过程中节约时间,把更多的精力放于业务逻辑的处理中。

欢迎您使用 ABP Code Generator ,重新开发的代码生成器,支持.net framework和.net core 双版本。 开发代码生成器的初衷是为了让大家专注于业务开发,而基础设施的地方,由代码生成器实现,节约大家的实现。实现提高效率、共赢的局面。 欢迎到:https://github.com/52ABP/52ABP.CodeGenerator 提供您的脑洞,如果合理的我会实现哦~

下载地址: https://marketplace.visualstudio.com/items?itemName=werltm.52ABPCodeGenerator

说正事

在群里已经内测了一周多的时间,也算稳定了,终于可以做成教程出来见人了。

支持 Visual Studio 2015 和 Visual Studio 2017 哦

下载方式:

首先打开Visual Studio 的工具- 拓展和更新 菜单栏,见下图: 菜单栏.png 然后选择 **“联机”**菜单栏 ,再在右侧 搜索"ABP", image.png 我们可以看到有4个工具。 我们都简单说明下: ABP Code Generator 是之前开发的,用的是基架体系可以参考文章:http://t.cn/RRMQQhS ABP Code Generator.png

ABP Code Power Tools 是目前支持.Net Framework 和.NET Core的代码生成器。 image.png 也是接下来会持续进行更新的项目之一。

后面的ABPHelper 是国外的一个人开发的,大家有兴趣也可以使用。 最后的ASP.NET Zero Power Tools是ABP官方推出的代码生成器,功能强大,唯一的问题就是要给钱

如何使用

只要是ABP的项目无论是Core还是Framework 版本都可以。 打开解决方案,选择Core层。 image.png 我们选择“Book”的实体文件,

using Abp.Domain.Entities;

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.IO;
using System.Linq;
using System.Text;

namespace SmartToken.Persons
{
  public  class Book:Entity<long>
    {
       
        [Required]
        [MaxLength(32)]
        public virtual string Name { get; set; }

        [Required]
        [MaxLength(32)]
        public virtual string Surname { get; set; }

        [MaxLength(255)]
        public virtual string EmailAddress { get; set; }
    }
}

在实体文件"Book"上右键点击 右键.png 展开对话框 基本信息配置.png

说下重点,如果是刚刚生成器的ABP空项目,请选择“第一次使用代码生成器”,它会帮助您生成相关的基类代码。

另外选择你的项目版本比如是.NET Core 和.Net Framework

然后点击确定 Dto信息 选择要生成的字段信息。点击确定即可。 以下是生成的文件信息:

Core层.png

Application层.png

生成了领域层和应用层的相关代码,涉及的功能有: 领域层初始化、AutoMapper自动注入、表的增删改查、批量删除、单数据修改等功能。 基本上来说和上一个版本的代码生成器差不多。

但是功能还不够。 所以我们要说接下来的事情了

路线图

  • 生成ReadMe手册
  • 完善基础设施层的代码
  • 完善bug
  • 针对视图层增加代码段。

另外欢迎到:https://github.com/52ABP/52ABP.CodeGenerator 欢迎 Star ,然后提出您的想法和意见。

现在的成绩

目前 版本还是1.0 后续做更多的迭代。请大家耐心等待。

意外的小惊喜就是今天居然上了最常用榜单有点意外。难道大家都去过年了吗? image.png

交流QQ群:104390185

最后祝大家: 大家新年快乐。 ##  -About Me-

image

image

52abp.codegenerator's People

Contributors

ltm0203 avatar

Watchers

 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.