Taylohtio/GeneralApi/GeneralApi.Core/Infrastructure/DataAccess/IUnitOfWork.cs

17 lines
323 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate;
namespace GeneralApi.Core.Infrastructure
{
public interface IUnitOfWork : IDisposable
{
ISession CurrentSession { get; }
void Begin();
void RollBack();
void Commit();
}
}