Originally Posted by
joshwex90
You definitely earn award miles when flying an LX-coded (and booked) flight, operated by LY. You simply won't earn status miles. That's the general rule of codeshares - you don't need to be members of the same alliance or FFP, just partners with each other.
No its not general, but in this case LY-LX clearly made some agreement for this route.
For example VIE-CDG operated by AF as OS codeshare counts as a normal OS flight for M&M (there is a thread somewhere).