ALS.API.CRUDGenerator 1.0.1

dotnet tool install --global ALS.API.CRUDGenerator --version 1.0.1
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 ALS.API.CRUDGenerator --version 1.0.1
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=ALS.API.CRUDGenerator&version=1.0.1
nuke :add-package ALS.API.CRUDGenerator --version 1.0.1

C# CRUD generator v1.0.0

For now, the generator only generates the sql script and the c# model.

Install

Installing the generator is very simple. You just need to type this one command in your console.

dotnet tool install --global ALS.API.CRUDGenerator

The tool is now accessible from the console by typing csgen

Create a configuration

To start using the generator tool for a new project you have to launch this command from the console.

csgen -i -c "[configuration_path]"

Here, -i means "init" and the -c is made to specify the configuration path. It will create a json file containing information about the project for which you are generating code. You can modify the configuration by hand if needed.

Generating a new model

Generating a new model can be done by typing this command:

csgen -c "[configuration_path]"

Questions will be asked and files will be generated using paths in the configuration file.

Files that are generated should always be verified by hand.

Current features

  • Generates a .sql migration file used to created the table.
  • Generates a .cs file containing the get/set simple model.

What's next?

  • Generating the gateway and controller
  • Direct configuration of constraints others than Primary Key in thewizard.
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  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. 
.NET Core netcoreapp3.1 is compatible. 
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
1.0.1 668 6/30/2020
1.0.0 579 6/30/2020