c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -


i'm using dynamic linq library , there source code , basic docu , nuget version

pm> install-package dynamiclinq

i'm trying construct clause involves guids

i have tried string "id == @0". parameter array object[] value (guid xxxx)

  var whereclausesb = buildlogicalkeywhereclause2(entity, logicalkey);  //build string   var parms = buildparamarray(entity, logicalkey); // object[]   var wherelambda = ofsi.bos.core.dynamicexpression.parselambda<t, bool>(whereclausesb.tostring(),parms);  //parse 

an exception thrown in dynamicexpression.parselambda

operator '==' incompatible operand types 'guid' , 'guid'

  • i have tried guid , string.(fail)
  • i tried , "id = @0" (fail).
  • string == string works, int32==int32 not guid == guid not

any ideas?

try using equals method instead of == operator in string:

"id.equals(@0)" 

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -