Created
April 2, 2012 21:40
-
-
Save SkightTeam/2287427 to your computer and use it in GitHub Desktop.
Domain --> Repository
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.Collections.Generic; | |
using System.Linq.Expressions; | |
namespace Skight.Demo.Domain | |
{ | |
public interface Repository | |
{ | |
Item get_by_id<Item>(int id); | |
void save<Item>(Item item); | |
Item get_single_item_matching<Item>(Query<Item> query); | |
void delete<Item>(Item item); | |
IEnumerable<Item> get_all_items_matching<Item>(Query<Item> query); | |
IEnumerable<Item> get_all_items<Item>(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment