Dane Vanderbilt
Dane Vanderbilt
I'm attempting to fix this issue. My goal right now is to have the `p.EnumProperty.ToString().Contains("value")` translate to a similar query to `((string)(object)p.EnumProperty).Contains("value")` when the database type is a string, but...
@roji Sounds good! @ajcvickers mentioned this in his comment about the casting workaround above about how translating .Tostring() to do a database-side cast could cause unexpected results when compared to...
@roji In the second scenario above where I'm looking for a CASE/WHEN expression in the translation of the LINQ query, the `Status` property is stored in the database as number...
@roji That sounds great! I like the default case refraining from translating if there is no value converter or a value converter other than the EnumToStringConverter. I'll merge those PR's...
Yes, I stated that incorrectly, but I think we are on the same page. I should've finished my coffee before replying 😆
The build Helix task seems to be stuck, but I'm not sure how to fix that.
@roji #33706 adds functionality that makes ToString on enums more useful when the enum is mapped to an int in the database.
Merging changes with https://github.com/dotnet/efcore/pull/33706
@roji @cincuranet This is ready to review again.
@roji GitHub wasn't letting me reply to this comment (https://github.com/dotnet/efcore/pull/33706#discussion_r1623792960), but the behavior we want is for the result to be an empty string if we call `ToString` on a...