arch / UnitOfWork

A plugin for Microsoft.EntityFrameworkCore to support repository, unit of work patterns, multiple database with distributed transaction supported, and MySQL multiple databases/tables sharding supported.
MIT License
1.34k stars 343 forks source link

PagedList has no public constructor #116

Open kevingy opened 5 years ago

kevingy commented 5 years ago

Is there any reason that PagedList has no public constructor? All of the constuctors are currently internal. As a result, I can't unit test code that returns a PagedList because I can't create a PagedList to return in the unit test.

I propose exposing a public constructor - or a static class that will return a new PagedList that is modifyable outside of UnitOfWork, similar to the Empty() method.

I'll even do the work and submit a pull request, if this seems reasonable. (I think it does.)

rigofunc commented 4 years ago

I'm agree with you, can U PR for this?

kevingy commented 4 years ago

Yes. I will create it as soon as possible.

NafezDeeb commented 1 year ago

any update on this issue?

nappinglady commented 1 year ago

这是来自QQ邮箱的假期自动回复邮件。   您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。