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.

Strange capitalization issue

See original GitHub issue

First of all, thanks for the software.

However I’m having a strange issue when generating the code for a Database First project:

DB

CREATE TABLE [dbo].[Menu](
 ....
[DataAlteracao] [datetime] NOT NULL,
[UtilizadorAlteracao] [varchar](30) NOT NULL,
[IPAlteracao] [varchar](30) NOT NULL,
 CONSTRAINT [PK_Menu] PRIMARY KEY CLUSTERED 

Generated Code

[Required]
[StringLength(30)]
public string UtilizadorAlteracao { get; set; }

[Required]
[Column("IPAlteracao")]
[StringLength(30)]
public string Ipalteracao { get; set; }

I’m not using the Use table and column names directly from database... because I specifically want to plurarize the tables myself and using the option Use table and column names directly from database... does not allow renaming tables or columns. The field “UtilizadorAlteracao” is converted correctly from the database, however the field IPAlteracao is not. Any reason for this?

These are the options used to generate the code. image image

Technical Details: EF Core version in use: EF Core 5 Is Handlebars used: no EF Core Power Tools version: 2.5.982 Database engine: SQL Server Visual Studio version: Visual Studio 2019

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
MisinformedDNAcommented, Sep 6, 2022

It works. Thank you!

0reactions
MisinformedDNAcommented, Sep 6, 2022

@ErikEJ OK, I’ll test it out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

WhAt iS tHiS kINd oF caPiTaLiSAtIOn cAlLeD? - random ...
Studly caps is a form of text notation in which the capitalization of letters varies by some pattern, or arbitrarily (usually also omitting ......
Read more >
Answer: Why all the crazy capital letters? – FIA
Capitalized nouns were a common occurrence and can be seen in many instances prior to the 1730s and seems to be a shift...
Read more >
Donald Trump has Super Weird capitalization habits On ...
“Tax Cut & Jobs Bill” : What at first glance appears to be just weird capitalization actually has some roots in proper capitalization....
Read more >
Humans, not chatbots, find capitalization tricky
Recent news stories repeat the claim that Large Language Models (LLMs) such as ChatGPT can be tricked by capital letters.
Read more >
Weird capitalization issue with iOS version? : r/scrivener
This behavior can be inconsistent between apps too. Check other apps in Scrivener's app type. They odd capitalization may pop up. (The ...
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