LINQ 2 SQL query does not work with a function call

前端 未结 1 867
无人共我
无人共我 2020-12-21 10:24

I am quite sure this question has already been asked several times and I do apolgize for asking it once again, but I made a few research and unfortunately I did not find my

1条回答
  •  爱一瞬间的悲伤
    2020-12-21 10:38

    LINQ 2 SQL is converting your query into an expression tree, and then translating that expression tree into SQL. Since your custom function doesn't have an SQL correlated function, it doesn't know how to translate it and throws an exception.

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