Int.Parse in Linq Expression

后端 未结 7 1866
花落未央
花落未央 2020-12-01 21:18

I have the following LINQ expression. I want calculate the sum of numeric values in an nvarchar field. I\'m using following code to do this, but I get an error

7条回答
  •  误落风尘
    2020-12-01 21:58

    When you need to make sure a CLR method can be used in LINQ to Entities you'd better consult this source: https://msdn.microsoft.com/en-us/library/vstudio/dd456828(v=vs.100).aspx.

    Not a fast reading, it'd take time, but here's the answer to your question (and many more like it).

提交回复
热议问题