c# - linq to object query to exclude 0 -


i have linq query below.

var datasource = m in product                  select new { class = m.class, id = (new make(m.id)).productname}; 

i instantiate class called make , fetch productname based on id. of id's 0. there way can exclude id's 0?

you're looking where clause:

where m.id != 0 

Comments