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

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

order - Notification for user in user account opencart -