Skip to content

Instantly share code, notes, and snippets.

View aidanmorgan's full-sized avatar

Aidan Morgan aidanmorgan

View GitHub Profile
namespace WhiskeyRecommender.Persistence
{
/// <summary>
/// A <see cref="IUnitOfWork"/> wraps a database transaction and provides access to the objects via a repository pattern.
///
/// This class implements <see cref="IDisposable"/> to allow use inside <c>using</c> blocks, and should automatically
/// close the database transaction (without saving) when disposed.
/// </summary>
public interface IUnitOfWork : IDisposable
{