Back to Aspnetcore

Model4

aspnetcore/includes/mvc-intro/model4.md

latest802 B
Original Source

The following table details the ASP.NET Core code generator parameters:

ParameterDescription
-mThe name of the model.
-dcThe data context.
--relativeFolderPathThe relative output folder path to create the files.
--useDefaultLayout|-udlThe default layout should be used for the views.
--referenceScriptLibrariesAdds _ValidationScriptsPartial to Edit and Create pages.
-sqliteFlag to specify if DbContext should use SQLite instead of SQL Server.

Use the h switch to get help on the aspnet-codegenerator controller command:

dotnetcli
dotnet aspnet-codegenerator controller -h

For more information, see dotnet aspnet-codegenerator