dotnet-codegencs
2.0.0
See the version list below for details.
dotnet tool install --global dotnet-codegencs --version 2.0.0
dotnet new tool-manifest
dotnet tool install --local dotnet-codegencs --version 2.0.0
#tool dotnet:?package=dotnet-codegencs&version=2.0.0
nuke :add-package dotnet-codegencs --version 2.0.0
CodegenCS
This is a dotnet tool (command-line tool) to extract the schema of a MSSQL or PostgreSQL database (and save it in a JSON file) and to clone/build/run code-generator templates.
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
Downloading and running a simple template (POCO Generator)
dotnet-codegencs template clone https://github.com/CodegenCS/CodegenCS.Templates/SimplePocos/SimplePocos.cs
(or just dotnet-codegencs template clone /SimplePocos/SimplePocos
)
dotnet-codegencs template run --TargetFolder=.\OutputFolder\ SimplePocos.dll AdventureWorks.json MyProject.POCOs
dotnet-codegencs template run --TargetFolder=.\Somefolder\ --File POCOs.generated.cs SimplePocos.dll AdventureWorks.json MyProject.POCOs --SingleFile
For more templates or for more information check out the main project documentation.
License
MIT License
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. 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 was computed. 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 was computed. 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. |
This package has no dependencies.
Version | Downloads | Last Updated | |
---|---|---|---|
3.5.0 | 1,493 | 6/23/2024 | |
3.4.1 | 341 | 5/20/2024 | |
3.4.0 | 345 | 4/15/2024 | |
3.1.5 | 616 | 5/29/2023 | |
3.1.4 | 366 | 4/16/2023 | |
3.1.3 | 1,670 | 12/29/2022 | |
3.1.2 | 425 | 12/18/2022 | |
3.0.0 | 513 | 11/5/2022 | |
2.1.1 | 574 | 9/26/2022 | |
2.1.0 | 571 | 9/19/2022 | |
2.0.0 | 494 | 8/29/2022 | |
1.2.0 | 538 | 8/1/2022 | |
1.1.2 | 585 | 3/13/2022 | |
1.1.1 | 442 | 10/30/2021 | |
1.0.5 | 545 | 8/2/2021 | |
1.0.4 | 668 | 8/1/2021 | |
1.0.3 | 509 | 7/26/2021 | |
1.0.2 | 430 | 7/20/2021 | |
1.0.1 | 492 | 7/18/2021 | |
1.0.0 | 667 | 7/6/2021 |