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 2.0 MVC. A lot more items are generated which are not listed below like the Miscellaneous Items and more.
One home page is generated.
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.
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.
One of each of the following Classes is generated per database table.
See the description of each Middle Tier Class, Models, and View Models listed below in the Generated Middle Layer page.
See the description of each Data Layer Class, Ad-Hoc SQL Class, and Linq-To-Entity Class listed below in the Generated Data Layer page.
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.
See the description of each Web API Controller listed below in the Generated Web API page.
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.
You can download six sample projects below generated by AspCoreGen 2.0 MVC. 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.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.
This solution contains 2 projects; an ASP.NET Core 2.0. Web Application and a .NET Core 2.0 Class Library Project. The Data Layer accesses the database using Entity Framework Core.
This solution contains 3 projects; an ASP.NET Core 2.0. Web Application, a .NET Core 2.0 Class Library Project, and an ASP.NET Core 2.0. Web API Application. The Data Layer accesses the database using Entity Framework Core while the Middle Tier is encapsulated through a Web API call.
This solution contains 2 projects; an ASP.NET Core 2.0. Web Application (.NET Framework) and a .NET Core 2.0 Class Library Project (.NET Framework). The Data Layer accesses the database using Classic ADO.NET calling Stored Procedures.
This solution contains 2 projects; an ASP.NET Core 2.0. Web Application (.NET Framework), .NET Core 2.0 Class Library Project (.NET Framework), and an ASP.NET Core 2.0. Web API Application (.NET Framework). The Data Layer accesses the database using Classic ADO.NET calling Stored Procedures while the Middle Tier is encapsulated through a Web API call.
This solution contains 2 projects; an ASP.NET Core 2.0. Web Application (.NET Framework) and a .NET Core 2.0 Class Library Project (.NET Framework). The Data Layer accesses the database using Classic ADO.NET using Ad-Hoc SQL embedded in Classes.
This solution contains 2 projects; an ASP.NET Core 2.0. Web Application (.NET Framework), .NET Core 2.0 Class Library Project (.NET Framework), and an ASP.NET Core 2.0. Web API Application (.NET Framework). The Data Layer accesses the database using Classic ADO.NET using Ad-Hoc SQL embedded in Classes, while the Middle Tier is encapsulated through a Web API call.