示例#1
0
 /// <summary>
 /// Releases the allocated resources for this context.
 /// </summary>
 public void Dispose()
 {
     if (_holidaysContext != null)
     {
         _holidaysContext.Dispose();
     }
 }
示例#2
0
        private void Dispose(bool disposing)
        {
            try
            {
                if (!_disposed)
                {
                    if (disposing)
                    {
                        DbContext.Dispose();
                    }
                }
            }
            catch (Exception ex) { throw ex; }

            _disposed = true;
        }
示例#3
0
 public void Dispose()
 {
     _context.Dispose();
 }
 public void Dispose()
 {
     Db.Dispose();
     GC.SuppressFinalize(this);
 }