Back to Aspnetcore

Model7

aspnetcore/includes/mvc-intro/model7.md

latest809 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.
--databaseProvider sqliteSpecify 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