how to make a web app in asp.net code example

Example: How to create a page in aspnet

dotnet aspnet-codegenerator razorpage -m Movie -dc dataClass -udl -outDir Pages/<page_name> --referenceScriptLibraries

<!-- data/dataClass.cs -->

using Microsoft.EntityFrameworkCore;

namespace Project.Data
{
    public class dataClass : DbContext
    {
        public dataclass (
            DbContextOptions<dataClass> options)
            : base(options)
        {
        }

        public DbSet<Project.Models.<model_name> <page_name> { get; set; }
    }
}