Originally Posted by
UnAllianced
Probably bad news, but if you use Lufthansa, K class is a big fat ZERO. If it's Air Canada, it looks like 100% base miles. If you see Lufthansa's code cheaper, that's probably why.
Ref:
Star Alliance Partner Mileage Charts
The code share shouldn't matter. The operating carrier will and as Oliver said LH K will book into AC K which should earn 100% on MileagePlus.