score:2

Accepted answer
instance.criteriaoperatorlist = context.workpacks
                                       // only request the operator names
                                       .select(w => w.operator)
                                       // but just request the distinct names
                                       .distinct()
                                       // then select into your dto.
                                       .select(o => new filtercriteriaitem
                                       {
                                           guid = guid.newguid(),
                                           name = o // o is the operator from workpack
                                       })
                                       .tolist();

Related Query

More Query from same tag