How It Works

AspCoreGen 6.0 MVC generates ASP.NET Core 6.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 6.0 MVC generates code.


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 6.0 Web Application - Front End (UI - Presentation Layer).

- Generate Views, Controllers.

- Generate styles, scripts, images, icons, web.config, etc.

b. Generate an optional ASP.NET Core 6.0 Web API project.

- Optionally encapsulate calls to the Business Layer when generating Web API.

c. Generate a Business Layer/Data Repository Class Library project.

- Generate Business Layer Interface Files (Middle Tier).

- Generate Business Layer Class Files (Middle Tier).

- Generate Data Repository Interface Files (Data Tier).

- Generate Data Repository Class Files (Data Tier).

- Generate additional files such as Models and View Models

4. Generate SQL Scripts.

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.