I'm working on a web-api
project created in .NET6
and I'm using Entity Framework Core (6.0)
in it. I have already designed Oracle database
So I've to use database-first
approach for my project
. For this purpose, when I try to generate the data-models
using EF DBContext Scaffolding
with the below command, It successfully generates all the relevant data-models
.
dotnet ef dbcontext scaffold "Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=SKL)));User Id=BOR;Password=myPassword;" Oracle.EntityFrameworkCore -o Models\BOR -c "EF_BORContext" -f --no-onconfiguring
But the issue is that; its generating the data-models
having name with first character in upper-case
and all other characters are in lower-case
. But I want to follow PascalCase
for my data-model
names.
For example, the generated data-model
for one of my entity
named as APPGROUP
;
I want to follow PascalCase
convention for my ClassName
and ClassPropertiese
. Is there any way to fix it? I try to find solution on Google
and StackOverflow
but couldn't get any fix.