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
Currently, there's nothing prevent an enum with the [Flags] attribute from also having a conversion to string when configuring the model: HasConversion<string>()
This works fine for client side evaluations but for server side, an issue arises when using enum.HasFlags() in a query since the generated SQL attempts to perform a bitwise & operation on a SQL string equivalent (e.g., varchar/nvarchar).
The text was updated successfully, but these errors were encountered:
Currently, there's nothing prevent an enum with the [Flags] attribute from also having a conversion to string when configuring the model:
HasConversion<string>()
This works fine for client side evaluations but for server side, an issue arises when using
enum.HasFlags()
in a query since the generated SQL attempts to perform a bitwise & operation on a SQL string equivalent (e.g., varchar/nvarchar).The text was updated successfully, but these errors were encountered: