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.


Step-by-Step


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

2. Retrieve Microsoft SQL Server Database information.

3. Generate Code: Generates three projects.

a. 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. See more

b. Generate an optional Web API project.

- Optionally encapsulate calls to Business Objects when generating Web API. See more

c. 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

a. 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.