Linq SqlMethods.Like fails

前端 未结 5 1844
栀梦
栀梦 2020-12-09 22:20

I\'m following the tips here, trying to leverage the statement that the sql doesn\'t get created until the enumerator is tripped. However I get the following error on the c

5条回答
  •  攒了一身酷
    2020-12-09 23:08

    You could do ESQL and do something like the below..

         db.MyTables.Where("it.Type like '" + typeFilter + "'").ToList();
    

提交回复
热议问题