This is a migrated thread and some comments may be shown as answers.

where boolean.equals(true)

1 Answer 317 Views
LINQ (LINQ specific questions)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Insad
Top achievements
Rank 2
Insad asked on 10 Jan 2012, 01:30 PM
Hello,

I just upgraded from oa 2010 Q3 to 2011 Q3.
Now I get errors on some ling queries.
//Produces an error Error stating:
//executing query: Telerik.OpenAccess.RT.sql.SQLException: Incorrect syntax near '='. Statement(s) could not be prepared.
var givesError = myCollection.Where(s=>s.bIsOnline.Equals(true));
 
//Solutions
var noError1 = myCollection.Where(s=>s.bIsOnline == true);
var noError2 = myCollection.Where(s=>s.bIsOnline);

Is this a bug or done on purpuse?

Cheers

1 Answer, 1 is accepted

Sort by
0
Thomas
Telerik team
answered on 11 Jan 2012, 02:14 PM
Hello,

this was a bug; I've just fixed this. Fortunately, the == workaround is already there and not obscure.
The next version will contain the needed fix, and I have updated your Telerik points.

Thanks for reporting this issue!
Thomas
the Telerik team

SP1 for Q3’11 of Telerik OpenAccess ORM is available for download

Tags
LINQ (LINQ specific questions)
Asked by
Insad
Top achievements
Rank 2
Answers by
Thomas
Telerik team
Share this question
or