Generated Projects

AspCoreGen 2.0 Razor generates 3 projects/applications in One Click! It generates 3 separate applications in one Solution. The separation of projects is another way to clearly distinguish the functionality of the respective applications.

  1. Web Application Project: This is the ASP.NET Core Razor application which mostly contains UI components, or the Presentation Layer.

    • Razor Pages
    • Razor Page Models
    • Partial Razor Pages
    • Partial Razor Page Models
    • Stylesheets
    • Images
    • Javascript scripts and libraries
    • Code Examples
    • Miscellaneous files that completes an ASP.NET Core web application

  2. Class Library Project: This is the API application that contains the Middle and Data Tier code which is shared between the Web Application and Web API.

    • Business Objects (Middle Tier .cs class files)
    • Data Layer using Linq-to-Entities (Data Tier .cs class files)
    • Enum Files
    • Entity Framework Entities or Ad-Hoc SQL
    • Miscellaneous files that completes a Class Library application

  3. Web API Project: This is the optional Web API application.

    • Controllers
    • Miscellaneous files that completes a Web API application

  4. Stored Procedures: Not a project. These are SQL scripts directly generated in your Microsoft SQL Server.


Shown below is an example of the generated Web Application in Visual Studio 2017's solution explorer.







Generated Web Project Examples
You can download six sample projects below generated by AspCoreGen 2.0 Razor. Please make sure to read the Readme.txt file for instructions. You will need Visual Studio 2017 and Microsoft SQL Server with the Microsoft Northwind database installed to use any of these sample projects. You also need to install the .NET Core 2.1 SDK in your machine. Right-click the download links below and choose "Save target as" in the context menu, and save it to your computer.

1. Entity Framework Sample Project

This solution contains 2 projects; an ASP.NET Core 2.1. Web Application and a .NET Core 2.1 Class Library Project. The Data Layer accesses the database using Entity Framework Core.

Download Sample Code
2. Entity Framework Using Web API Sample Project

This solution contains 3 projects; an ASP.NET Core 2.1. Web Application, a .NET Core 2.1 Class Library Project, and an ASP.NET Core 2.1. Web API Application. The Data Layer accesses the database using Entity Framework Core while the Middle Tier is encapsulated through a Web API call.

Download Sample Code
3. Stored Procedures Sample Project

This solution contains 2 projects; an ASP.NET Core 2.1. Web Application and a .NET Core 2.1 Class Library Project. The Data Layer accesses the database using ADO.NET calling Stored Procedures.

Download Sample Code
4. Stored Procedures Using Web API Sample Project

This solution contains 2 projects; an ASP.NET Core 2.1. Web Application, .NET Core 2.1 Class Library Project, and an ASP.NET Core 2.1. Web API Application. The Data Layer accesses the database using ADO.NET calling Stored Procedures while the Middle Tier is encapsulated through a Web API call.

Download Sample Code
5. Ad-Hoc SQL Sample Project

This solution contains 2 projects; an ASP.NET Core 2.1. Web Application and a .NET Core 2.1 Class Library Project. The Data Layer accesses the database using ADO.NET using Ad-Hoc SQL embedded in Classes.

Download Sample Code
6. Ad-Hoc SQL Using Web API Sample Project

This solution contains 2 projects; an ASP.NET Core 2.1. Web Application, .NET Core 2.1 Class Library Project, and an ASP.NET Core 2.1. Web API Application. The Data Layer accesses the database using ADO.NET using Ad-Hoc SQL embedded in Classes, while the Middle Tier is encapsulated through a Web API call.

Download Sample Code
* Please see notes.