Adjust to CodeGenerator using EffectiveModelContext

No match.