EzDbSchema 1.0.28

A class library that allows you to point to a database and represent the complete schema with columns, relationships (including fk names and multiplicity) in a simple object hierarchy.  Some use cases require a schema of a database without the bulk of Entity power tools or Entity Framework.  This class library will give you the ability to save this as a json file to be restored later.

There is a newer version of this package available.
See the version list below for details.
Install-Package EzDbSchema -Version 1.0.28
dotnet add package EzDbSchema --version 1.0.28
<PackageReference Include="EzDbSchema" Version="1.0.28" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EzDbSchema --version 1.0.28
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

EZDBSchema - Easy Database Schema

A class library that alllows you to point to a database and obtain a schema dump complete with columns, relationships (including fk names and multiplicity). Some use cases require a schema of a database without the bulk of Entity power tools or Entity Framework.

Included in the project is a handy command line interface that can be used to dump the schema of the database to a json file.

The idea is to obtain the database schema informtion as close to the source as possible. All of the schema definitions can be obtain from the database itself, with a little sluething, we can derive that information we need quickly and deliver it into a usable object heirarchy.

One possible use of this is for code generation based on database objects.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

You will need MSSQL with some database installed. If you need a sample database, feel free to look for the World Wide Importers samples.

Using this project:

From NuGet
  1. Install-Package EzDbSchema.Core
  2. Add the following line of code
var schema = new EzDbSchema.MsSql.Database().Render("MySchema", "Server=???;Database=???;user id=sa;password=sa");
  1. Run the app
As Cli
  1. Change EzDbSchema.Cli/appsettings.json ConnectionString to the proper database authentication credentials.
  2. run the application. A file called MySchemaName.db.json will be written to the EzDbSchema.Cli folder

Deployment

This project was design to be hosted and distributed with nuget.com.

Built With

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

Many thanks to the following projects that have helped in this project

  • McMaster.Extensions.CommandLineUtils

EZDBSchema - Easy Database Schema

A class library that alllows you to point to a database and obtain a schema dump complete with columns, relationships (including fk names and multiplicity). Some use cases require a schema of a database without the bulk of Entity power tools or Entity Framework.

Included in the project is a handy command line interface that can be used to dump the schema of the database to a json file.

The idea is to obtain the database schema informtion as close to the source as possible. All of the schema definitions can be obtain from the database itself, with a little sluething, we can derive that information we need quickly and deliver it into a usable object heirarchy.

One possible use of this is for code generation based on database objects.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

You will need MSSQL with some database installed. If you need a sample database, feel free to look for the World Wide Importers samples.

Using this project:

From NuGet
  1. Install-Package EzDbSchema.Core
  2. Add the following line of code
var schema = new EzDbSchema.MsSql.Database().Render("MySchema", "Server=???;Database=???;user id=sa;password=sa");
  1. Run the app
As Cli
  1. Change EzDbSchema.Cli/appsettings.json ConnectionString to the proper database authentication credentials.
  2. run the application. A file called MySchemaName.db.json will be written to the EzDbSchema.Cli folder

Deployment

This project was design to be hosted and distributed with nuget.com.

Built With

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

Many thanks to the following projects that have helped in this project

  • McMaster.Extensions.CommandLineUtils

Release Notes

Updated sql nuget
VS2019
NuGet Spec Update.
.netcore 2.2
Nuget Updates
Typos.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.29 34 8/30/2019
1.0.28 88 6/6/2019
1.0.27 85 6/5/2019
1.0.26 146 2/22/2019
1.0.23 210 8/24/2018
1.0.22 171 8/20/2018
1.0.21 184 8/16/2018
1.0.16 179 8/1/2018
1.0.15 190 7/27/2018
1.0.11 180 7/20/2018