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
Post a Comment