- Run
dotnet tool restore
to restore all necessary tools - Run
dotnet saturn migration
to create sqlite database - Run
dotnet run --project ./src/Migrations
to migrate sqlite database. - Run
dotnet watch --project ./src/App
to run your server in watch mode.
- WIP
Templates comes with Saturn.Cli
tool installed by default. It's a CLI tool that can be used for project scaffold and managing generated DB migrations
dotnet saturn
supports following commands:
gen NAME NAMES COLUMN:TYPE COLUMN:TYPE COLUMN:TYPE ...
- creates model, database layer, views and controller returning HTML viewsgen.json NAME NAMES COLUMN:TYPE COLUMN:TYPE COLUMN:TYPE ...
- creates model, database layer and JSON API controllergen.model NAME NAMES COLUMN:TYPE COLUMN:TYPE COLUMN:TYPE ...
- creates model and database layermigration
- runs all migration scripts for the database
Generator supports following types:
string
int
float
double
decimal
guid
datetime
bool