Bitwise AND custom operator #111
-
I'm trying to make a custom operator for bitwise and (on top of Pomelo EF Core with MariaDB). But I can't get it working. I was hoping something like this would work, it compiles, but doesn't work runtime public class BitwiseAndOperator : IGridifyOperator
{
public string GetOperator() => "#*";
public Expression<OperatorParameter> OperatorHandler()
{
return (prop, value) => ((uint)prop & (uint)value) != 0;
}
}
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hi @dalen, |
Beta Was this translation helpful? Give feedback.
-
Hi @dalen, |
Beta Was this translation helpful? Give feedback.
Hi @dalen,
Please try
v2.9.0
, custom operators should now support the unary expressions. and let me know if you had any other problems.