Skip to content

Instantly share code, notes, and snippets.

@ashutoshraina
Created February 2, 2013 11:45
Show Gist options
  • Save ashutoshraina/4696963 to your computer and use it in GitHub Desktop.
Save ashutoshraina/4696963 to your computer and use it in GitHub Desktop.
IRepository
using System;
using System.Linq;
namespace EFRepository.Infrastructure
{
/// <summary>
/// Generic interface for the Repository.
/// </summary>
/// <typeparam name="T">EntityType T</typeparam>
public interface IRepository<T>
{
T Add(T entity);
T Remove(T entity);
T Update(T entity);
IQueryable<T> Query();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment