dotnet / dotnet/AspNetCore.Docs
Problem following instructions for .Net CLI tooling
- Dominant language
- C#
- Stars
- 13.1k
- Forks
- 24.6k
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 109
Description
### Description
I have Debian 12 on my computer.
For "Select your tooling" I chose **.Net CLI tab**.
Under "**Scaffold the model"** the instruction is "For the Database Provider, use the arrow keys to select sqlite-efcore. Press Enter". But under **The following code is added to the Program file by the scaffolder:**
builder.Services.AddDbContextFactory(options =>
options.UseSqlServer(
builder.Configuration.GetConnectionString("BlazorWebAppMoviesContext") ??
throw new InvalidOperationException(
"Connection string 'BlazorWebAppMoviesContext' not found.")));
builder.Services.AddQuickGridEntityFrameworkAdapter();
builder.Services.AddDatabaseDeveloperPageExceptionFilter();
First. I think it should be _options.UseSqlite_
Second. After running dotnet scaffold, I check Program.cs and the three lines are not added by the scaffolder.
Third, in Program.cs, I have to reference _using Microsoft.EntityFrameworkCore_ so that dotnet build is successful.
Thank you for reading my comments
### Page URL
https://learn.microsoft.com/en-us/aspnet/core/blazor/tutorials/movie-database-app/part-2?view=aspnetcore-10.0
### Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/blazor/tutorials/movie-database-app/part-2.md
### Document ID
f9acc6f3-d6e2-ca66-9a66-7e0ea09aa38f
### Platform Id
ef97ed5a-9570-fb55-a33b-46ed7e991772
### Article author
@guardrex
### Metadata
* ID: f9acc6f3-d6e2-ca66-9a66-7e0ea09aa38f
* PlatformId: ef97ed5a-9570-fb55-a33b-46ed7e991772
* Service: **aspnet-core**
* Sub-service: **blazor**
[Related Issues](https://github.com/dotnet/AspNetCore.Docs/issues?q=is%3Aissue+is%3Aopen+f9acc6f3-d6e2-ca66-9a66-7e0ea09aa38f)
Contributor guide
Assessment
This issue has not been assessed yet.