Skip to content

Instantly share code, notes, and snippets.

@SkightTeam
Created April 2, 2012 21:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SkightTeam/2287427 to your computer and use it in GitHub Desktop.
Save SkightTeam/2287427 to your computer and use it in GitHub Desktop.
Domain --> Repository
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