LINQ select on a SQL View gets wrong answer

后端 未结 7 1247
猫巷女王i
猫巷女王i 2021-01-05 02:07

I have a SQL View that produces a response with 8 columns. Its a rather complicated so I won\'t list it here and it won\'t add much to the issue I\'m trying to understand.

7条回答
  •  迷失自我
    2021-01-05 02:52

    Assume you're using EF (entity framework). If so, please use .AsNoTracking() on the IQueryable, otherwise you may get cached results.

提交回复
热议问题