dotnet-codegencs 3.5.0

dotnet tool install --global dotnet-codegencs --version 3.5.0                
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local dotnet-codegencs --version 3.5.0                
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=dotnet-codegencs&version=3.5.0                
nuke :add-package dotnet-codegencs --version 3.5.0                

CodegenCS CLI

dotnet-codegencs is a command-line tool to build and run code-generator templates (including generating based on a Database Schema or based on a Swagger specification).

It can also be used to clone templates from our online catalog (https://github.com/CodegenCS/Templates/) and to extract the schema of a MSSQL or PostgreSQL database (in case you're generating from a Database Schema) .

Downloading and running sample template to generate based on a database schema (POCO Generator)

dotnet-codegencs template clone https://github.com/CodegenCS/Templates/DatabaseSchema/SimplePocos/SimplePocos.cs

(or just dotnet-codegencs template clone /DatabaseSchema/SimplePocos/SimplePocos.cs)

dotnet-codegencs template run SimplePocos.dll AdventureWorks.json MyProject.POCOs

dotnet-codegencs template run --OutputFolder=.\OutputFolder\ SimplePocos.dll AdventureWorks.json MyProject.POCOs

dotnet-codegencs template run --OutputFolder=.\Somefolder\ --File POCOs.generated.cs SimplePocos.dll AdventureWorks.json MyProject.POCOs --p:SingleFile

Downloading and running sample template to generate based on a Swagger specification (OpenAPI)

dotnet-codegencs template clone https://github.com/CodegenCS/Templates/OpenAPI/NSwagClient/NSwagClient.cs

dotnet-codegencs template run NSwagClient.dll petstore-openapi3.json MyProject.RestClients dotnet-codegencs template run --OutputFolder=.\Somefolder\ --File PetstoreClient.generated.cs NSwagClient.dll petstore-openapi3.json MyProject.RestClients

Extracting schema of a MSSQL or PostgreSQL database

dotnet-codegencs model dbschema extract mssql "Server=MYSERVER; Database=AdventureWorks; User Id=myUsername;Password=MyPassword" AdventureWorks.json

dotnet-codegencs model dbschema extract mssql "Server=(local)\SQLEXPRESS; Database=AdventureWorks; Integrated Security=True" AdventureWorks.json

dotnet-codegencs model dbschema extract postgresql "Host=localhost; Database=Adventureworks; Username=postgres; Password=MyPassword" AdventureWorks.json

For more templates or for more information check out the main project documentation.

License

MIT License

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
3.5.0 838 6/23/2024
3.4.1 291 5/20/2024
3.4.0 299 4/15/2024
3.1.5 570 5/29/2023
3.1.4 324 4/16/2023
3.1.3 1,629 12/29/2022
3.1.2 379 12/18/2022
3.0.0 470 11/5/2022
2.1.1 533 9/26/2022
2.1.0 532 9/19/2022
2.0.0 452 8/29/2022
1.2.0 491 8/1/2022
1.1.2 535 3/13/2022
1.1.1 382 10/30/2021
1.0.5 486 8/2/2021
1.0.4 532 8/1/2021 1.0.4 is deprecated because it has critical bugs.
1.0.3 453 7/26/2021
1.0.2 376 7/20/2021
1.0.1 433 7/18/2021
1.0.0 609 7/6/2021