If this is not due to the lack of directives declared by other users, this will also happen if there is another problem with your request.
Look at the VS compiler error list: For example, if the "Value" variable in your request does not exist, you will have a "lambda-string" error, and several errors after another are still associated with an unknown / erroneous field.
In your case, it could be:
objContentLine = (from q in db.qryContents where q.LineID == Value orderby q.RowID descending select q).FirstOrDefault();
Errors:
Error 241: Cannot convert lambda expression to type 'string' because it is not a delegate type
Error 242 The delegate 'System.Func <..>' does not accept 1 argument
Error 243 The name "Value" does not exist in the current context
Correct the variable variable "Value" and other errors will also disappear.
AFract Jan 15 '15 at 15:02 2015-01-15 15:02
source share