-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Labels
area-scaffoldingarea-sqlitecommunity-contributioncustomer-reportedgood first issueThis issue should be relatively straightforward to fix.This issue should be relatively straightforward to fix.
Milestone
Description
When scaffolding from a SQLite database using the dotnet ef tool it will create the DbContext with the initial lowercase if the database filename is lowercase.
Example:
dotnet ef dbcontext scaffold "DataSource=blogging.db;Cache=Shared" Microsoft.EntityFrameworkCore.Sqlite
It creates the DbContext with the filename bloggingContext.cs and the class name bloggingContext which is rather ugly.
Running dotnet ef dbcontext scaffold --help it states:
-c|--context <NAME> The name of the DbContext. Defaults to the database name.
But my expectation was that it would still create the filename and the class name with the initial letter uppercase as is the .NET convention.
EF Core version: 6.0.4
Database provider: (e.g. Microsoft.EntityFrameworkCore.Sqlite)
Target framework: (e.g. .NET 6.0)
bricelam and glen-84
Metadata
Metadata
Assignees
Labels
area-scaffoldingarea-sqlitecommunity-contributioncustomer-reportedgood first issueThis issue should be relatively straightforward to fix.This issue should be relatively straightforward to fix.