EntityDataSource Where Clause in VB.NET

后端 未结 1 554
迷失自我
迷失自我 2021-01-23 22:44

I have a entitydatasource bound to a gridview on my webpage.

In the code behind, I am able to filter and display what I want to the gridview using the WHERE statements o

1条回答
  •  不要未来只要你来
    2021-01-23 23:11

    The "IN clause" for EntityDataSource.Where requires curly braces, rather than parentheses:

    whereString = "it.EmployeeID IN {1,4,7}"
    

    0 讨论(0)
提交回复
热议问题