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

Bitwise comparison

1 Answer 51 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.
Stefan Lorenz
Top achievements
Rank 1
Stefan Lorenz asked on 10 Jun 2010, 02:54 PM
Hi,

I wonder how to do bitwise comparison.

Using something like "from t in ....where (t.State & myFlags.Some) == myFlags.Some" raises an error. The generated SQL looks like "WHERE a[field] AND 1 = 1".

This explains the error, but how to do it right?

Best Regards
Stefan

1 Answer, 1 is accepted

Sort by
0
Thomas
Telerik team
answered on 10 Jun 2010, 05:28 PM
Hello Stefan Lorenz,

unfortunately, bitwise operations are not supported yet and lead to such errors. We are targetting this feature for the next patch (not the upcoming build).

Stay tuned & all the best,
Thomas
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
LINQ (LINQ specific questions)
Asked by
Stefan Lorenz
Top achievements
Rank 1
Answers by
Thomas
Telerik team
Share this question
or