2018-12-14 06:58:09 +08:00
|
|
|
The following table details the ASP.NET Core code generator parameters:
|
|
|
|
|
|
|
|
| Parameter | Description|
|
|
|
|
| ----------------- | ------------ |
|
|
|
|
| -m | The name of the model. |
|
|
|
|
| -dc | The data context. |
|
|
|
|
| -udl | Use the default layout. |
|
2019-08-15 06:28:13 +08:00
|
|
|
| --relativeFolderPath | The relative output folder path to create the files. |
|
2018-12-14 06:58:09 +08:00
|
|
|
| --useDefaultLayout | The default layout should be used for the views. |
|
|
|
|
| --referenceScriptLibraries | Adds `_ValidationScriptsPartial` to Edit and Create pages |
|
|
|
|
|
|
|
|
Use the `h` switch to get help on the `aspnet-codegenerator controller` command:
|
|
|
|
|
2019-09-18 05:01:04 +08:00
|
|
|
```dotnetcli
|
2018-12-14 06:58:09 +08:00
|
|
|
dotnet aspnet-codegenerator controller -h
|
2019-08-15 05:41:49 +08:00
|
|
|
```
|
|
|
|
|
2019-08-15 06:28:13 +08:00
|
|
|
For more information, see [dotnet aspnet-codegenerator](xref:fundamentals/tools/dotnet-aspnet-codegenerator)
|