Bug description I wrote a linq using "let" clause to store the subexpression into a range variable "score", in order to use it in the "orderby" and "select". var query = from watchVideo in DbContex ...