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
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).