I have a task to get data from database and draw a diagram based on it. The problem is the data that I need is stored as string (but it should be decimal, why they did it is a mystery and they are not going to make it decimal and that is for sure). Here is the LINQ query that I write:
from SPEKTR in db.SPEKTR
where
Convert.ToInt32(SPEKTR.RF) > 88 &&
Convert.ToInt32(SPEKTR.RF) < 90
select SPEKTR;
And this is the error that I get
{"LINQ to Entities does not recognize the method 'Int32 ToInt32(System.String)' method, and this method cannot be translated into a store expression."}
Are there any options to convert that string?