Skip to content

Generic base interfaces needed for implementing a very basic repository pattern in your project.

License

Notifications You must be signed in to change notification settings

GlitchedPolygons/RepositoryPattern

Repository files navigation

Important

NOTICE:

Development of this project has been migrated to: https://codeberg.org/GlitchedPolygons/RepositoryPattern

All pull requests and issues on GitHub will be ignored from the 16th of August, 2025 onwards.

NuGet API

The Repository Pattern


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!

Existing implementations

The following are official (or officially tested) implementations:

Interface Documentation

A top-level interface documentation can be found here: glitchedpolygons.github.io/RepositoryPattern

About

Generic base interfaces needed for implementing a very basic repository pattern in your project.

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Languages