Created
March 18, 2012 11:39
-
-
Save lancscoder/2070764 to your computer and use it in GitHub Desktop.
DapperDinner Part 3 Object State
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 interface IDinnerRepository | |
{ | |
Dinner NewDinner(); | |
RSVP NewRsvp(int dinnerId); | |
PagedList<Dinner> FindByLocation(float latitude, float longitude, string orderBy = "DinnerID", int page = 1, int pageSize = 20); | |
PagedList<Dinner> FindUpcomingDinners(string orderBy = "DinnerID", int page = 1, int pageSize = 20); | |
PagedList<Dinner> FindUpcomingDinners(DateTime? eventDate, string orderBy = "DinnerID", int page = 1, int pageSize = 20); | |
PagedList<Dinner> FindDinnersByText(string q, string orderBy = "DinnerID", int page = 1, int pageSize = 20); | |
IEnumerable<Dinner> AllDinnersByUser(string name); | |
Dinner Find(int id); | |
void InsertOrUpdate(Dinner dinner); | |
void InsertOrUpdate(RSVP rsvp); | |
void Delete(int id); | |
void DeleteRsvp(RSVP rsvp); | |
} |
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 interface ITracker | |
{ | |
ObjectState State { get; set; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment