Skip to content

Instantly share code, notes, and snippets.

@petarvucetin
Last active December 11, 2015 07:29
Show Gist options
  • Save petarvucetin/4567078 to your computer and use it in GitHub Desktop.
Save petarvucetin/4567078 to your computer and use it in GitHub Desktop.
YARP - yet another repository pattern
public interface IRepository<T> where T : IAggregateRoot
{
IQueryable<T> Find();
void Add(T instance);
void Update(T instance);
void DeleteById(object id);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment