This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi Guys, I would like to know if this http://www.mindscape.co.nz/forums/Thread.aspx?PostID=3654 feature has made it into LightSpeed yet?
Johan J v Rensburg |
|
|
Yes, this was included in LightSpeed 3.1 (with the caveat that the bitwise OR operator is not supported on Oracle). |
|
|
Hi Ivan,
How do one use it my current query looks like this: var query = Entity.Attribute("Status") & 1 = 1 but it doesn't like my query.
Regards, Johan |
|
|
Ah, sorry. Bitwise operators are supported only in LINQ. To use them with the core API, you need to determine the corresponding SQL function or operator, and use the Function syntax. In your case this would be: Entity.Attribute("Status").Function("bitand", 1) = 1 // Oracle, DB2 |
|