/// <summary> /// Disposes the current instance of database context. /// </summary> public static void DisposeContext() { if (_context != null) { _context.Dispose(); _context = null; } }