c# - NHibernate Linq-to-Sql - How to do a bitwise complement (~) -


i trying use simple bitwise operations in linq sql query using nhibernate linq provider:

query.where(x => ((x.allow & ~x.deny) & permissions) == permissions).toarray() 

this throws nhibernate.hql.ast.antlr.querysyntaxexception : recognition error occurred. because of & ~x.deny

when remove & ~x.deny part, query runs without throwing exception.

what proper way execute bitwise complement (~) in linq sql query?


Comments

Popular posts from this blog

Java 8 + Maven Javadoc plugin: Error fetching URL -

c++ - Msgpack packing bools bug -

java - POJO with list of POJO to JSON display size and index -