LINQ select on a SQL View gets wrong answer

后端 未结 7 1224
猫巷女王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 03:07

    At 6th column of first two rows you have same value - 124, which can lead for one row to be filtered if this is some foreign key in this view. I had similar situation using data table Load function, because it applies constraints while loading retrieved data to data table. Try to remove key from linq to sql schema.

提交回复
热议问题