Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The -sqlite option is not recognized by the aspnet-codegenerator command #34420

Open
bonasunu opened this issue Dec 28, 2024 · 0 comments · May be fixed by #34421
Open

The -sqlite option is not recognized by the aspnet-codegenerator command #34420

bonasunu opened this issue Dec 28, 2024 · 0 comments · May be fixed by #34421

Comments

@bonasunu
Copy link

bonasunu commented Dec 28, 2024

Description

Description

I try to run this command for Linux.

dotnet aspnet-codegenerator razorpage -m Student -dc ContosoUniversity.Data.SchoolContext -udl -outDir Pages/Students --referenceScriptLibraries -sqlite

I encountered an issue.

dotnet aspnet-codegenerator razorpage -m Student -dc ContosoUniversity.Data.SchoolContext -udl -outDir Pages/Students --referenceScriptLibraries -sqlite Building project ... Finding the generator 'razorpage'... Running the generator 'razorpage'... Specify --help for a list of available options and commands. Unrecognized option '-sqlite' at Microsoft.Extensions.CommandLineUtils.CommandLineApplication.HandleUnexpectedArg(CommandLineApplication command, String[] args, Int32 index, String argTypeName, Boolean ignoreContinueAfterUnexpectedArg) at Microsoft.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args) at Microsoft.VisualStudio.Web.CodeGeneration.ActionInvoker.Execute(String[] args) at Microsoft.VisualStudio.Web.CodeGeneration.CodeGenCommand.Execute(String[] args) RunTime 00:00:17.49

The issue is unrecognized option '-sqlite'.

I think this document should include -dbProvider for sqlite option.

Page URL

https://learn.microsoft.com/en-us/aspnet/core/data/ef-rp/intro?view=aspnetcore-9.0&tabs=visual-studio

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/data/ef-rp/intro.md

Document ID

fa488196-1f98-08ea-adcc-17d9dac86727

Article author

@tdykstra

Related Issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant