- Separate Optional from Nullable
- Optional is only used in parameters and specifies that given parameter has default value
- Both can be override separately
- Changed configuration format for functions, instead of array accept object where keys are function names
- Remove
IgnoredFunctions
in favor of setting function to false inFunctions
- Enforce mapping for overloaded function
- You can now specify mapping per function that will override global settings
- Change mapped function name
- Disable fetching of values
- Change mapped type and is nullable for every parameter and return model column separately
- Set custom mapping function when changing type, looks at global mapping if you do not define any
- Add new command
routines
loads routines from database and saves them to file set inRoutinesFile
- added
--UseRoutinesFile
flag to generate, which loads routes fromRoutinesFile
instead of database
- local config can have both
.local
postfix
- local config can have both
.local.
orlocal.
as prefix
- Build information is now available in all templates
.BuildInfo
-
GeneratedFileCase
config values renamed to match world-wide accepted terms:- from:
"snake"
to:"snakecase"
- from:
"lcase"
to:"camelcase"
- from:
"ucase"
to:"pascalcase"
- from:
-
Template functions:
uCamel
,lCamel
,snake
renamed with equivalent world-wide accepted terms:- from:
"snake"
to:"snakeCased"
- from:
"lCamel"
to:"camelCased"
- from:
"uCamel"
to:"pascalCased"
- from:
-
Model template now has previous config values accessible through
Routine
variable
- New config values for folder names where generated models and processors will be placed
ProcessorsFolderName
with default value:"processors"
ModelsFolderName
with default value:"models"
- Model, Processor and DbContext templates now have new variable
Config
pointing to the config values of the application