Skip to content

Instantly share code, notes, and snippets.

@petarvucetin
Created May 20, 2013 22:39
Show Gist options
  • Save petarvucetin/5616166 to your computer and use it in GitHub Desktop.
Save petarvucetin/5616166 to your computer and use it in GitHub Desktop.
public interface IRepository<T, in K> : IDisposable where T:class
{
IQueryable<T> All { get; }
IQueryable<T> AllAndExpand(params Expression<Func<T, object>>[] entity);
T Find(K id);
void InsertOrUpdate(T item);
void Delete(K id);
void Save();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment