Open JackMcBride98 opened 6 months ago
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.
This seems a duplicate of https://github.com/dotnet/roslyn/issues/47956.
Describe the bug
We have the below Enum
Then when using FormattableSqlString
This sets the Discriminator to "Azure". Without the .ToString() call on the enum, it sets it to 0
Running dotnet format removes the .ToString() call on the EmployeeType enum, which changes the behaviour. I've fixed for now by using nameof(), but this defo seems an issue.
Is this the correct place for this issue?
To Reproduce
Run dotnet format on a project with this code in.
TargetFramework - net8.0