dotnet-codegencs 1.1.0

There is a newer version of this package available.
See the version list below for details.
The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet tool install --global dotnet-codegencs --version 1.1.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 1.1.0                
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=dotnet-codegencs&version=1.1.0                
nuke :add-package dotnet-codegencs --version 1.1.0                

CodegenCS

DbSchema Extractor

This is a dotnet tool (command-line tool) that extracts the schema of a MSSQL or PostgreSQL database and saves it in a JSON file. It also contains a simple template to generate POCOs based on the JSON schema.

Sample usage:

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

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

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

Simple POCO Generator

This is a template that generates POCO classes from a JSON schema extracted with dbschema-extractor.

Sample usage:

codegencs simplepocogenerator AdventureWorks.json --TargetFolder=OutputFolder --Namespace=MyProject.POCOs

codegencs simplepocogenerator AdventureWorks.json --TargetFolder=. --Namespace=MyProject.POCOs --SingleFile=POCOs.generated.cs --CrudExtensions

codegencs simplepocogenerator AdventureWorks.json --TargetFolder=. --Namespace=MyProject.POCOs --CrudClassMethods

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 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. 
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 292 6/23/2024
3.4.1 257 5/20/2024
3.4.0 219 4/15/2024
3.1.5 539 5/29/2023
3.1.4 299 4/16/2023
3.1.3 1,547 12/29/2022
3.1.2 361 12/18/2022
3.0.0 454 11/5/2022
2.1.1 512 9/26/2022
2.1.0 512 9/19/2022
2.0.0 433 8/29/2022
1.2.0 471 8/1/2022
1.1.2 515 3/13/2022
1.1.1 362 10/30/2021
1.0.5 469 8/2/2021
1.0.4 511 8/1/2021 1.0.4 is deprecated because it has critical bugs.
1.0.3 430 7/26/2021
1.0.2 356 7/20/2021
1.0.1 415 7/18/2021
1.0.0 593 7/6/2021