dotnet / efcore

EF Core is a modern object-database mapper for .NET. It supports LINQ queries, change tracking, updates, and schema migrations.
https://docs.microsoft.com/ef/
MIT License
13.49k stars 3.13k forks source link

Support more bitwise operators #18795

Open roji opened 4 years ago

roji commented 4 years ago

Following #18788, we can add support for xor, shift-left, shift-right etc. which seem to be pretty universally supported across databases.

ajcvickers commented 4 years ago

@roji This has had closed-fixed for a while without being closed.

smitpatel commented 4 years ago

PR never got merged or updated.

ranma42 commented 1 week ago

As of 7e313ab6cff18ef5c58bec565fa7da7ca6bba36f XOR is supported.

I can try and rebase https://github.com/dotnet/efcore/compare/main...roji:efcore:MoreBitwise to also tackle left and right shift if it makes sense, but I would need some guidance around the mismatches between C# and SQL:

Note that while I have short-term plans to use the XOR (to improve some NOT translations in SqlServer), I have no immediate plan to proceed on this issue 😇

roji commented 1 week ago

@ranma42 yeah, we've seen zero user interest in this, so I'd just leave it alone until we do :)