Returning a Distinct IQueryable with LINQ?

后端 未结 7 1749
無奈伤痛
無奈伤痛 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:16

    try and write an IEqualityComparer for the object type being selected and use it in your Distinct method

提交回复
热议问题