Returning a Distinct IQueryable with LINQ?

后端 未结 7 1748
無奈伤痛
無奈伤痛 2020-12-29 09:29

I\'m writing a Function that pulls Records from a DataBase using LINQ to get an IQueryable. This LINQ statement will pull all of the records for Active users within a certai

7条回答
  •  佛祖请我去吃肉
    2020-12-29 10:15

    The problem is you are pulling back fields that will make each row distinct. Like sgriffinusa said, only pull back the 3 values you are displaying.

提交回复
热议问题