Entity framework strings using greater than operator

后端 未结 1 1690
深忆病人
深忆病人 2020-12-20 11:48

How do I make this query work like it does in sql? In sql I can use < and > operators on strings.

I\'ve been googling this for about

相关标签:
1条回答
  • 2020-12-20 12:35

    Try this :

    from r in results
    where (r.ExemptionCode.CompareTo("900") > 0  || r.ExemptionCode == "701" || r.ExemptionCode == "702" ||     r.ExemptionCode == "721" || r.ExemptionCode == "724")
    select r
    
    0 讨论(0)
提交回复
热议问题