2017-11-07 03:58:25 +08:00
|
|
|
<a name="codegenerator"></a>
|
2017-11-01 13:38:47 +08:00
|
|
|
The following table details the ASP.NET Core code generators` parameters:
|
|
|
|
|
|
|
|
| Parameter | Description|
|
|
|
|
| ----------------- | ------------ |
|
|
|
|
| -m | The name of the model. |
|
|
|
|
| -dc | The data context. |
|
|
|
|
| -udl | Use the default layout. |
|
|
|
|
| -outDir | The relative output folder path to create the views. |
|
|
|
|
| --referenceScriptLibraries | Adds `_ValidationScriptsPartial` to Edit and Create pages |
|
|
|
|
|
|
|
|
Use the `h` switch to get help on the `aspnet-codegenerator razorpage` command:
|
|
|
|
|
|
|
|
```console
|
|
|
|
dotnet aspnet-codegenerator razorpage -h
|
2017-11-07 03:58:25 +08:00
|
|
|
```
|