GenXCleanArchTemplate.Scaffolding
1.0.20
dotnet add package GenXCleanArchTemplate.Scaffolding --version 1.0.20
NuGet\Install-Package GenXCleanArchTemplate.Scaffolding -Version 1.0.20
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.Scaffolding" Version="1.0.20" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="GenXCleanArchTemplate.Scaffolding" Version="1.0.20" />
<PackageReference Include="GenXCleanArchTemplate.Scaffolding" />
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.Scaffolding --version 1.0.20
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: GenXCleanArchTemplate.Scaffolding, 1.0.20"
#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.Scaffolding@1.0.20
#: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.Scaffolding&version=1.0.20
#tool nuget:?package=GenXCleanArchTemplate.Scaffolding&version=1.0.20
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
GenX Clean Architecture Template - Scaffolding
Scaffolding Structure
For each entity in your database model, create the following structure:
|- 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
Creating files and structure
To create a structure using the scaffolding, run the following command: Note: if file already exists, will be overwrite.
dotnet new genx-ddd-scaffold --namespace "MyNamespaceProject" --entity "MyEntityName"
There are no supported framework assets in this package.
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.