RevEng: nameof syntax error #16083
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
type-bug
Milestone
Describe what is not working as expected.
I have a table in Azure SQL server like
When I [re]generate the model files using
The generated class looks like
Using preview 5:
Which works OK.
But using preview 6:
The problem is that both the class name (ConfigFile) and the member name are ConfigFile and as result when the compiler see the 'ConfigFile' in
it thinks it is the member variable, not the class.
The solution, as I see, will be in these cases to prefix the class name with the namespace. Like
Further technical details
EF Core version: 3.0.0-preview6.19304.10
Database Provider: Microsoft.EntityFrameworkCore.SqlServer
Operating system: Windows 10
IDE: Visual Studio 2019 preview 2
The text was updated successfully, but these errors were encountered: