Skip to content

Added Repository pattern for LowDb databases

Choose a tag to compare

@DarthPedro DarthPedro released this 16 May 19:33
· 28 commits to main since this release
  • Created new package for people that want to use repository pattern with LowDb (D20Tek.LowDb.Repositories).
  • Defined IRepository and IRepositoryAsync interfaces and DbDocument to define generic repository patterns.
  • Implemented LowDbRepository and LowDbAsyncRepository (for corresponding interfaces) build on top of LowDb databases.
  • Added unit tests for both repository implementations.
  • Updated Sample.WebApi to provide v2 endpoints that use the IRepositoryAsync to persist data rather than direct LowDbAsync calls.