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.
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.)
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.)