GenXCleanArchTemplate.WebAPI
1.0.6
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
<PackageReference Include="GenXCleanArchTemplate.WebAPI" Version="1.0.6" />
<PackageVersion Include="GenXCleanArchTemplate.WebAPI" Version="1.0.6" />
<PackageReference Include="GenXCleanArchTemplate.WebAPI" />
paket add GenXCleanArchTemplate.WebAPI --version 1.0.6
#r "nuget: GenXCleanArchTemplate.WebAPI, 1.0.6"
#:package GenXCleanArchTemplate.WebAPI@1.0.6
#addin nuget:?package=GenXCleanArchTemplate.WebAPI&version=1.0.6
#tool nuget:?package=GenXCleanArchTemplate.WebAPI&version=1.0.6
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 | Versions 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. |
-
net8.0
- GenXCleanArchTemplate.Application (>= 1.0.0)
- GenXCleanArchTemplate.Domain (>= 1.0.0)
- GenXCleanArchTemplate.Infrastructure (>= 1.0.0)
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 8.0.10)
- Microsoft.AspNetCore.OpenApi (>= 8.0.10)
- Pomelo.EntityFrameworkCore.MySql (>= 8.0.2)
- Swashbuckle.AspNetCore (>= 6.9.0)
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 |