dotnet / dotnet/Scaffolding

the --help and --full-help display the incorrect db providers

Open
#3,581 0 comments 0 reactions 1 assignee Claimed by @haileymck View on GitHub
area-dotnet-scaffolding
Dominant language
C#
Stars
818
Forks
260
Avg merge
1d 8h
Merged PRs (30d)
10

Description

here the description examples does not match the help for db providers and the db providers listed are not the correct values.

C:\Users\hmckelvie\blazor06>dotnet scaffold aspnet razorpages-crud --help
Description:
Generates Razor pages using Entity Framework for Create, Delete, Details, Edit and List operations for the given model

Examples:
Generate all CRUD pages for Customer model:
dotnet scaffold aspnet razorpages-crud --project C:/MyRazorApp/MyRazorApp.csproj --model Customer --data-context ShopDbContext --database-provider SqlServer --page All

Generate List and Details pages with SQLite using prerelease packages:
dotnet scaffold aspnet razorpages-crud --project C:/MyApp/MyApp.csproj --model Order --data-context AppContext --database-provider SQLite --page List,Details --prerelease

Usage:
dotnet-scaffold aspnet razorpages-crud [options]

Options:
--project (REQUIRED) .NET project to be used for scaffolding (.csproj file)
--model (REQUIRED) Name for the model class to be used for scaffolding
--dataContext (REQUIRED) Name of the DbContext class to use for data access. If the specified DbContext doesn't exist, a new one will be created with the necessary DbSet for the model.
--dbProvider (REQUIRED) The Entity Framework database provider to use (e.g., SqlServer, PostgreSQL, SQLite, InMemory). Determines which EF Core provider packages will be added to the project.
--page (REQUIRED) The CRUD page(s) to scaffold
--prerelease Include prerelease package versions when installing latest Aspire components
-?, -h, --help Show help and usage information

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.