Shown below are the seven modes derived from the C major scale played over the seven scale tone seventh chords from the key of C major.
Because each seventh chord contains four notes of the mode it relates to, modes work extremely well over seventh chords. Listen to the sound of this line using the D Dorian mode over a Dm7 chord.
Here is a melody which progresses through all the modes in C major over each of the scale tone 7th chords in the key.