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

Scaffold-DbContext: make an option to not capitalize table columns #8078

Closed
reader-man opened this issue Apr 5, 2017 · 3 comments
Closed

Comments

@reader-man
Copy link

Describe what is not working as expected.
Scaffold-DbContext is working as the designers want, but it would be helpful if there was an option to leave the generated table column names as is, leaving their capital/small letters without changing them, here i am talking especially about the first letter of the table column.

Steps to reproduce

just use Scaffold-DbContext as normal to produce entities.

Further technical details

EF Core version: 1.1
Database Provider: Microsoft.EntityFrameworkCore.SqlServer
Operating system: win 10
IDE: Visual Studio 2017

@lajones
Copy link
Contributor

lajones commented Apr 5, 2017

Many people want many different things for the generated code - closing this as dupe of e.g. #5947.

But, as referenced in that issue, it is possible already to override the CandidateNamingService - see https://gist.github.com/natemcmaster/353f4ab3efb4514eeaec846df28f0e24.

@ErikEJ
Copy link
Contributor

ErikEJ commented Apr 5, 2017

@sjh37 !

@ajcvickers ajcvickers reopened this Oct 16, 2022
@ajcvickers ajcvickers closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2022
@sjh37
Copy link

sjh37 commented Oct 16, 2022

@lajones @reader-man
This can already be achieved with the EntityFramework Reverse POCO Code First Generator.

Beautifully generated code that is fully customisable. It generates code as if it was hand-written.

Customisable output

The generated output is also fully customisable. Take a look at some of the things you can customise. For example:

  • Creating enumerations from database tables.
  • Filter tables, columns, views, stored procedures, table-valued functions and scalar-valued functions to just the minimum set you require. This is key to having a fast EntityFramework.
  • Generate FakeDbContext for easy unit testing.
  • Rename tables, columns and stored procedures in your DB context.

To name but a few of what this generator is capable of.
Used and trusted by over 500,000 developers worldwide.

To remove the trail restrictions you will require a licence key.
Free to academics (you need a .edu or a .ac email address), not free for commercial use.
Go to the ReversePOCO website to obtain/purchase your licence key.

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

No branches or pull requests

5 participants