How to get distinct paged list from SharpRepository FindAll method with selector?

StackOverflow https://stackoverflow.com/questions/22794602

  •  25-06-2023
  •  | 
  •  

質問

I was trying to get a field from an entitytype which has many dups using the sharprepository FindAll method with paging. I don't know how to supply the Distinct parameter or if it is even possible?

repo.FindAll(spec, c => c.Field, new PagingOptions<EntityType>(1, 20, "Field", false);
役に立ちましたか?

解決

At this point it's not something you can do, though it makes sense that we should add it to the list of things to add. If you wouldn't mind adding that as an issue to GitHub I'm sure we can add it pretty easily. We would just need to figure out the best way to include it.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top