You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
await dataContext.Database.ExecuteSqlInterpolatedAsync(
$"UPDATE Employees SET Discriminator = {EmployeeType.Azure.ToString()}, AzureId = {azureId} WHERE EmployeeId = {employee.EmployeeId};");
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: