Number of questions 1,751
Number of tests completed 252,495
Number of questions answered 3,765,643
Number of registered users 19,174
Sign In | Register
Skip Navigation Links
Question: A LINQ to SQL query can include calls to your own local methods:
Answer1: In Where clauses only
Answer2: In the final projection only
Answer3: Anywhere in the query
Answer4: Not at all
Answer: In the final projection only

Explaination: In a LINQ to SQL query, you cannot include calls to your own local methods (or unsupported Framework methods) in any place other than the final projection. If you try to do otherwise, one of two things will happen: LINQ to SQL will throw an exception when the query executes ("method XYZ has no translation to SQL") the query will be executed locally from that point on.

Correctly answered: 406
Incorrectly answered: 909
Terms of Use Ver. 2.0.6783.38332