Important
Development of this project has been migrated to: https://codeberg.org/GlitchedPolygons/RepositoryPattern
These are the generic base interfaces needed for implementing a very basic repository pattern inside your C# projects.
Repositories (IRepository<T1, in T2>) always contain objects that implement IEntity<T> (where T is the type of unique identifier). Usually, T would be something like string or int...
Make absolutely sure that your implementation guarantees the uniqueness and immutability of every IEntity<T>.Id!
The following are official (or officially tested) implementations:
- SQLite
- PostgreSQL
- MongoDB
- SQL Server
A top-level interface documentation can be found here: glitchedpolygons.github.io/RepositoryPattern