Generated Demos & Code Examples
Click the links provided below for sample code of the respective features.
Note: Samples were taken from the
generated code based on Microsoft's Northwind SQL database. Most of the sample code below were generated using the Products table and the related
Categories and Suppliers tables. All code were generated in One Click in under a minute.
Note: All these generated code in One Click*.
Listed below are the main list of items generated by AspCoreGen 6.0 MVC. A lot more items are generated which are not listed below
like the
Miscellaneous Items and more.
Generated ASP.NET Core Web Project
Home Page |
|
Index.cshtml
Contains the list of generated applications: ASP.NET Core Web project, Class Library project, and the optional ASP.NET Core Web API project. Each
project in the list contains the main files generated for the respective application. This is the Home Page (Index.cshtml) for the generated Solution. Contains
list of all the main generated Views, Controllers, Business Objects,
Data Layer, View Models, Models, Web API Controllers, Stored Proceduress, Linq-to-Entities, Ad-Hoc SQL, etc.
The list of MVC Views are clickable so you can see the functionalities of each view.
|
Demo
|
One of each of the following MVC Views is generated per database table.
Note: Views with grouping such as the Master-Detail, or List with Grouping are only generated for tables that have foreign keys. Each
foreign key in the table will have the respective generated "grouping view" code.
See the description of each MVC View and Controller listed below in the
Generated Presentation Layer page.
One of each of the following Controller is generated per database table.
One of the following Example Class is generated per database table.
Generated (Middle-Tier Access) Examples Class (.cs) |
|
1. Example Class |
Sample Code
|
Generated Class Library Project
One of each of the following Classes is generated per database table.
See the description of each Business Layer object, Models, and View Models listed below
in the
Generated Business Layer page.
Generated Middle Tier |
|
1. Business Layer Partial Interface (Used Like Base) |
Sample Code
|
2. Business Layer Partial Interface |
Sample Code
|
3. Business Layer Partial Class (Used Like Base) |
Sample Code
|
4. Business Layer Partial Class |
Sample Code
|
See the description of each Data Repository object, Ad-Hoc SQL Class, and Linq-To-Entity Class listed below in the
Generated Data Repository page.
Generated Data Tier |
|
1. Data Repository Partial Interface (Used Like Base) |
Sample Code
|
2. Data Repository Partial Interface |
Sample Code
|
3. Data Repository Partial Class (Used Like Base) |
Sample Code
|
4. Data Repository Partial Class |
Sample Code
|
One of each of the respective Class is generated per database table when Ad-Hoc SQL or Linq-To-Entities is selected during code generation.
Generated Ad-Hoc SQL or Linq-to-Entity (.cs) |
|
1. Ad-Hoc SQL Class |
Sample Code
|
2. Linq-To-Entity (Entity Framework) Class |
Sample Code
|
Generated ASP.NET Web API Project
One of each of the following Classes is generated per database table.
See the description of each Web API Controller listed below in the
Generated Web API page.
Generated T-SQL Scripts
One of each of the following script is generated per database table. Some of the scripts below are only generated for tables with foreign keys such as the Select Drop Down List Data script.
See the description of each Stored Procedure below in the
Generated SQL page.
Generated Web Project Examples
You can download six sample projects below generated by AspCoreGen 6.0 MVC. Please make sure to read the Readme.txt file for instructions. You
will need Visual Studio 2022 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 6.0 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 6.0. Web Application and a .NET Core 6.0 Class Library Project. The Data Repository (Data Layer)
accesses the database using Entity Framework.
|
Download Sample Code
|
2. Entity Framework Using Web API Sample Project
This solution contains 3 projects; an ASP.NET Core 6.0. Web Application, a .NET Core 6.0 Class Library Project, and an ASP.NET Core 6.0. Web API Application. The Data Repository (Data Layer)
accesses the database using Entity Framework while the Business Layer (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 6.0. Web Application and a .NET Core 6.0 Class Library Project. The Data Repository (Data Layer)
accesses the database using Classic ADO.NET calling Stored Procedures.
|
Download Sample Code
|
4. Stored Procedures Using Web API Sample Project
This solution contains 3 projects; an ASP.NET Core 6.0. Web Application, .NET Core 6.0 Class Library Project, and an ASP.NET Core 6.0. Web API Application. The Data Repository (Data Layer)
accesses the database using Classic ADO.NET calling Stored Procedures while the Business Layer (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 6.0. Web Application and a .NET Core 6.0 Class Library Project. The Data Repository (Data Layer)
accesses the database using Classic ADO.NET using Ad-Hoc SQL embedded in Classes.
|
Download Sample Code
|
6. Ad-Hoc SQL Using Web API Sample Project
This solution contains 3 projects; an ASP.NET Core 6.0. Web Application, .NET Core 6.0 Class Library Project, and an ASP.NET Core 6.0. Web API Application. The Data Repository (Data Layer)
accesses the database using Classic ADO.NET using Ad-Hoc SQL embedded in Classes, while the Business Layer (Middle Tier) is encapsulated through a Web API call.
|
Download Sample Code
|