EF4: LINQ 2 Entities query works in C# but not in VB

后端 未结 4 441
滥情空心
滥情空心 2021-02-03 13:53

[EDITED: I left the original question below, with some more context and code to reproduce the problem. The short version below contains the essence of the question]

Shor

4条回答
  •  臣服心动
    2021-02-03 14:32

    hi this can be made to work quite easy...

    Instead of an IQueryable

    Dim orders As IQueryable(Of Order) = db.Orders

    use a List

    Dim orders as List(of Order) = db.Orders.ToList()
    

提交回复
热议问题