Created
February 2, 2013 11:45
-
-
Save ashutoshraina/4696963 to your computer and use it in GitHub Desktop.
IRepository
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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