Created
October 3, 2011 01:29
-
-
Save micahasmith/1258243 to your computer and use it in GitHub Desktop.
The Repository Pattern in .NET
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
public class PeopleRepository | |
{ | |
public List<PersonDTO> Get() | |
{ | |
//return a list of person data transfer objects here | |
} | |
public void Insert(PersonDTO person) | |
{ | |
//insert a person here | |
} | |
public void Update(PersonDTO person) | |
{ | |
//update a person here | |
} | |
public void Delete(PersonDTO person) | |
{ | |
//guess | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment