14
Beh io ho una collezione in quantoEspressione lambda per "non in"?
detailcollection
cui ogni dettaglio ha
code,price,name
ora ho una stringa con alcuni codici
string codes="1,2,3"
so di poter ottenere un array usando split
string[] codesarray=codes.split(',')
allora come posso ottenere prodotti non in codes
/*it is the idea i have, but i would not like to have a loop*/
for(int i=0; i< codesarray.count;i++)
{
detailcollection.Where (x=> x.ope_idsku ==codesarray[i])
}
vorrei qualcosa come
detailcollection.Where (x=> x.ope_idsku not in (codesarray))
eri veloce, Grazie. – angel