summaryrefslogtreecommitdiff
path: root/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.UnitOfWork.Generic/IGenericUnitOfWork.cs
blob: a1310454f616e46d505e5fe03820e9b7de20db9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using Gestor.Infrastructure.Repository.Generic;
using System;
using System.Linq;

namespace Gestor.Infrastructure.UnitOfWork.Generic
{
	public interface IGenericUnitOfWork
	{
		void Commit();

		IQueryable<TEntity> Query<TEntity>()
		where TEntity : class;

		IGenericRepository<TEntity> Repository<TEntity>()
		where TEntity : class;

		void Rollback();
	}
}