Linear connections in non-commutative geometry