Is there a better way to do bitwise with ormlite than whats in the answer here?
I’ve just added support for | & << >> ^
bitwise operations in typed SQL expressions in this commit. Ultimately support depends on the underlying RDBMS which support for different bitwise operations varies, e.g. only |
and &
is widely supported across all RDBMS’s whilst MySql appears to be the only RDBMS that supports all of them, SQL Server doesn’t support any shift operators, SQLite doesn’t support ^
Exclusive Or, etc.
This change is available from v5.1.1 that’s now available on MyGet.
awesome thanks.will check it out.