GenXCleanArchTemplate.WebAPI 1.0.6

There is a newer version of this package available.
See the version list below for details.
dotnet add package GenXCleanArchTemplate.WebAPI --version 1.0.6
                    
NuGet\Install-Package GenXCleanArchTemplate.WebAPI -Version 1.0.6
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="GenXCleanArchTemplate.WebAPI" Version="1.0.6" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="GenXCleanArchTemplate.WebAPI" Version="1.0.6" />
                    
Directory.Packages.props
<PackageReference Include="GenXCleanArchTemplate.WebAPI" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add GenXCleanArchTemplate.WebAPI --version 1.0.6
                    
#r "nuget: GenXCleanArchTemplate.WebAPI, 1.0.6"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package GenXCleanArchTemplate.WebAPI@1.0.6
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=GenXCleanArchTemplate.WebAPI&version=1.0.6
                    
Install as a Cake Addin
#tool nuget:?package=GenXCleanArchTemplate.WebAPI&version=1.0.6
                    
Install as a Cake Tool

dotnet new genx-cleanarch -n NewProjectName

For each entity of your database model, create:

|- Domain |- Entities -- <entity>.cs |- Infrastructure |- Config -- <entity>Config.cs |- Repositories -- <entity>Repository.cs |- Interfaces -- I<entity>Repository.cs |- Application |- Services -- <entity>Service.cs |- Interfaces -- I<entity>Service.cs |- WebAPI |- Controllers -- <entity>Controller.cs

For each entity of your database model, add into:

|- Infrastructure |- Data -- AppDbContext.cs -- public DbSet<entity> <entity> { get; set; } |- WebAPI -- program.cs -- builder.Services.AddScoped<I<entity>Repository, <entity>Repository>(); -- builder.Services.AddScoped<I<entity>Service, <entity>Service>();

Creating MySQL database

mysql -u root -p

CREATE DATABASE GenXCleanArchTemplate-db CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; CREATE USER 'GenXCleanArchTemplate-user'@'localhost' IDENTIFIED BY 'GenXCleanArchTemplate-password'; GRANT ALL PRIVILEGES ON GenXCleanArchTemplate-db.* TO 'GenXCleanArchTemplate-user'@'localhost'; FLUSH PRIVILEGES; exit;

Creating EF Migrations Scripts

dotnet tool install --global dotnet-ef

dotnet ef migrations add initial-migration --project GenXCleanArchTemplate.Infrastructure --startup-project GenXCleanArchTemplate.WebAPI

dotnet ef database update --project GenXCleanArchTemplate.Infrastructure --startup-project GenXCleanArchTemplate.WebAPI

Executing WebAPI

dotnet run --project GenXCleanArchTemplate.WebAPI or F5 (debug mode)

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.13 178 10/5/2025
1.0.12 180 10/5/2025
1.0.11 183 10/5/2025
1.0.10 162 12/24/2024
1.0.9 167 12/14/2024
1.0.8 142 12/2/2024
1.0.7 155 11/20/2024
1.0.6 151 11/20/2024
1.0.5 158 11/20/2024
1.0.4 148 11/20/2024
1.0.3 151 11/20/2024
1.0.2 150 11/17/2024
1.0.1 163 11/17/2024
1.0.0 157 11/16/2024