Created
February 9, 2012 20:16
-
-
Save dgomesbr/1782788 to your computer and use it in GitHub Desktop.
Interface para repositório genérico
This file contains hidden or 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.Collections.Generic; | |
namespace Workshop.Data | |
{ | |
public interface IRepository<T> | |
{ | |
T Save(T entity); | |
T Update(T entity); | |
void Delete(T entity); | |
T ById(int id); | |
IList<T> All(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment