How It Works
AspCoreGen 2.0 MVC generates ASP.NET Core 2.0 models, views, controllers, middle-tier and data-tier (linq-to-entities using Entity Framework Core) objects in a 3-tier layered infrastructure. In short it generates a whole web application. It also generates stored procedure scripts or ad-hoc SQL. All these are generated in One Click*. Shown below is a visual reprensentation/flow of how AspCoreGen 2.0 MVC generates code.


how AspCoreGen 2.0 MVC code generation work

  1. Click the "Generate Code..." button.

  2. Retrieve Microsoft SQL Server Database information.

  3. Generate Code: Generates three projects.

    1. Generate an ASP.NET Core 2.0 Web Application - Front End (UI - Presentation Layer).
      • Generate Views, Controllers. See more
      • Generate styles, scripts, images, icons, web.config, etc. (not shown in the diagram). See more

    2. Generate an optional Web API project
      • Optionally encapsulate calls to Business Objects when generating Web API code. See more

    3. Generate a Business/Data Objects Class Library project
      • Generate Middle-Tier Class Files (Middle Layer). See more
      • Generate Data-Tier Class Files (Data Layer). See more
      • Generate additional files such as Models and View Models

  4. Generate SQL Scripts. See more

    • Generate Linq-to-Entities queries (EF Core), or Stored Procedures, or Ad-Hoc SQL. Stored procedures are generated inside Microsoft SQL Server. The Linq-to-Entities queries (EF Core) or Ad-Hoc SQL scripts are generated as class files.
* Please see notes.