question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Entities are not converted to pascal case when columns are renamed using json config

See original GitHub issue

At First, thanks and I love this tool.

Provide steps to reproduce

My condition is almost same as this issue. isusue1440 And table renaming works quite well for this closed issue, but column renaming don’t work as table renaming do. With efpt.renaming.json, column name isn’t converted into PascalCase.

  • Without efpt.renaming.json “PREFIX_APPLE_NAME” renamed into “PrefixAppleName”

  • With efpt.renaming.json “PREFIX_APPLE_NAME” renamed into “APPLE_NAME”

[
   {
      "ColumnPatternReplaceWith": "",
      "ColumnRegexPattern": "PREFIX_",
      "SchemaName": "dbo",
      "TablePatternReplaceWith": "",
      "TableRegexPattern": "^.*?_",
      "Tables": [ ],
      "UseSchemaName": false
   }
]

Provide technical details

  • EF Core version in use: EF Core 6

  • Is Handlebars used: no

  • Is .dacpac used: no

  • EF Core Power Tools version: 2.5.1068

  • Database engine: (SQL Server)

  • Visual Studio version: Visual Studio 2019

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ErikEJcommented, Aug 11, 2022

I implemented a fix for this in the latest daily build, would be grateful if you could try it out.

I would be very grateful for a rating or review on Visual Studio Marketplace.

0reactions
ErikEJcommented, Aug 29, 2022

I have reintroduced this change, and added an option to revert to the old behaviour

Read more comments on GitHub >

github_iconTop Results From Across the Web

Forcing Entity Framework generated classes to have ...
I have been working with Entity Framework 4 and SQL Server. The main problem I have found is that the table names in...
Read more >
How to customize property names and values with System. ...
Implement a custom property naming policy; Convert dictionary keys to camel case; Convert enums to strings and camel case; Configure the order ...
Read more >
Customising ASP.NET Core Identity EF Core naming ...
In this post I'll describe how to configure EF Core to use snake_case for database object names instead of Camel Case, so they...
Read more >
Deserialize Snake Case to Camel Case With Jackson
In this article, we've seen different ways to deserialize snake case JSON to camel case fields using Jackson. First, we explicitly named the ......
Read more >
Is there a way to have Entity Framework automatically ...
Is there a way to have Entity Framework automatically convert to/from JSON for a property (db column)? ... I want to stuff a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found