Strange capitalization issue
See original GitHub issueFirst 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.
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:
- Created a year ago
- Comments:7 (6 by maintainers)
Top GitHub Comments
It works. Thank you!
@ErikEJ OK, I’ll test it out.