Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 8223

Is it possible to do a Greater than or Less than comparison between strings in a where clause of a LINQ to CRM query

$
0
0

Hi,

I'm trying to write a LINQ to CRM query where I retrieve records with a string field > a certain value.

E.g.

from MySystemUser in SystemUserIQuerable

where MySystemUser .FullName < "SomeName"

orderby MySystemUser .FullName

While == and != are supported,   >, <, >= etc. are not supported. Also the string method Compare is also not support???   MySystemUser.FullName.Compare("SomeName")


Andy


Viewing all articles
Browse latest Browse all 8223

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>