asp.net - where clause in linq list -
h, have list of orders , i'm trying filter list. far have:
dim orders = _ordercontroller.loadall().tolist()
which indeed give me list of orders can display on gridview.
how filter list say: where order.referencenumber = "abc123"
and give me 1 order in list display in gridview
cheers,
try this:
vb:
dim orders = _ordercontroller.loadall().where(function(c) c.referencenumber = "abc").tolist();
c#:
var orders = _ordercontroller.all().where(o => o.referencenumber = "abc123").tolist();
Comments
Post a Comment