User-defined functions, user-defined aggregates, CLR types, and methods on CLR types are not allowed in expressions in this ...