linq - overload resolution failed because no accessible 'And' accepts this number of arguments When using Predicatebuilder in Vb.net -


i'm trying build dynamic linq query predicate builder in vb.net. however, when try use predicate "and" clause filter query following error appears. none of similar questions here answered.

here code:

dim ds datatable = loaddata("select i.itm_code code,itm_barcode barcode,itm_description description,itm_price price,subgrp_name subgroup, itm_expiry, itm_active visible, itm_featured featured, itm_photo photo, itm_brand brand, itm_title title, itm_size size, itm_measurement unit items i, groups g, subgroups s, item_barcode b i.itm_code = b.itm_code , i.itm_subgroup = s.subgrp_id")   dim tmp ienumerable(of datarow) = new datatable().asenumerable()  dim predicate system.linq.expressions.expression(of func(of datarow, boolean)) = predicatebuilder.true(of datarow)() 

'the error appears here

predicate = predicate.and(function(x datarow) x("itm_brand") = brand)   tmp = ds.asenumerable().where(predicate.compile()) 

this predicatebuilder class class library @ (http://www.albahari.com/nutshell/predicatebuilder.aspx)

enter image description here


Comments

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -