Skip to content

Instantly share code, notes, and snippets.

@aidanmorgan
Created June 16, 2011 15:02
Show Gist options
  • Save aidanmorgan/1029428 to your computer and use it in GitHub Desktop.
Save aidanmorgan/1029428 to your computer and use it in GitHub Desktop.
public interface IWhiskeyRepository : IRepository<Whiskey>
{
/// <summary>
/// Creates a new <see cref="Whiskey"/> instance, associates it with the provided <see cref="Distillery"/> and returns the new instance.
/// </summary>
Whiskey Create(Distillery d, WhiskeyType type);
/// <summary>
/// Adds the provided <see cref="Whiskey"/> to the database, associating it with the provided <see cref="Distillery"/>.
/// </summary>
void Add(Distillery d, Whiskey val);
/// <summary>
/// Removes the provided <see cref="Whiskey"/> from the database.
/// </summary>
void Remove(Whiskey val);
IList<Whiskey> FindByName(string name);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment