AspNetCore.Docs/aspnetcore/includes/RP/model4x.md

759 B

no-loc
Home
Privacy
Kestrel
appsettings.json
ASP.NET Core Identity
cookie
Cookie
Blazor
Blazor Server
Blazor WebAssembly
Identity
Let's Encrypt
Razor
SignalR

Scaffold the Movie model

  • Run the following from the command line (in the project directory that contains the Program.cs, Startup.cs, and .csproj files):

    dotnet aspnet-codegenerator razorpage -m Movie -dc MovieContext -udl -outDir Pages/Movies --referenceScriptLibraries
    

If you get the error:

No executable found matching command "dotnet-aspnet-codegenerator"

Open a command shell to the project directory (The directory that contains the Program.cs, Startup.cs, and .csproj files).