【发布时间】:2014-04-25 19:57:29
【问题描述】:
如何在 Linq (lambda) to Entity Framework 中执行此查询。
select * from table where name like '%someString%' order by name <'someString', name
假设我在服务器上有这些数据:
aba
baa
按“%ba%”查询
if I order by name the result will be :
aba - baa
if I order < name the result will be :
baa - aba (which is desired)
【问题讨论】:
标签: mysql linq entity-framework