Пример #1
0
 /// <summary>
 /// Make sure there are no open sessions.
 /// In the web app this will be called when the injected UnitOfWork manager
 /// is disposed at the end of a request.
 /// </summary>
 public void Dispose()
 {
     if (!_isDisposed)
     {
         _context.Dispose();
         _isDisposed = true;
     }
 }