简体   繁体   English

如何从带有选择器的SharpRepository FindAll方法获取不同的分页列表?

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

I was trying to get a field from an entitytype which has many dups using the sharprepository FindAll method with paging. 我试图使用带有页面调度的Sharprepository FindAll方法从具有很多重复的实体类型中获取字段。 I don't know how to supply the Distinct parameter or if it is even possible? 我不知道如何提供Distinct参数,或者甚至可能吗?

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. 如果您不介意将其作为问题添加到GitHub,我相信我们可以轻松添加它。 We would just need to figure out the best way to include it. 我们只需要找出包括它的最佳方法即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM