This version we introduce the view models grouped in a folder, this folder is named with the name of model. Commands affected:
cm g model --with-script <Model Name>
cm g model --with-all-scripts --forced
cm g model --with-all-scripts --safety
Create New Web Api:
cm new <APP_NAME>
Create Model (And ViewModels) Templeate:
cm (g|generate) model <MODEL_NAME>
Create Model from json file script:
cm (g|generate) model --with-script <MODEL_JSON_FILE_NAME>
Warning: Json`s file script are in Entities/JsonModelsDefinition folder.
Create Model from all json files overwritting generated files:
cm (g|generate) model --with-all-scripts --safety
Warning: Json`s file script are in Entities/JsonModelsDefinition folder.
Create Model from all json files without overwritting generated files:
cm (g|generate) model --with-all-scripts --force
Warning: Json`s file script are in Entities/JsonModelsDefinition folder.
Generate Repository based on Model:
cm (g|generate) repository <MODEL_NAME>
Generate CRUD Service based on Model:
cm (g|generate) service-crud --model <MODEL_NAME>
Generate CRUD Controller based on Model:
cm (g|generate) controller-crud --model <MODEL_NAME>
Update Repository Extension to dependency injection mapping:
cm repository-di
Update Service Extension to dependency injection mapping:
cm service-di
Add Packge in current project:
cm add <PACKAGE_NAME> or cm add <PACKAGE_NAME> --verison <VERSION_NUMBER>
Warning: require dotnet-ef installed and execute on Api folder📁.
Add Migration:
cm ef add-migration <MIGRATION_NAME>
Remove Migration:
cm ef remove-migration
List Migration:
cm ef list-migration
List Migration:
cm ef update-database