I am using Entity Framework, and I have a line of code that convert string field (id)to int and compare with a number
students = students.Where(s => (Int32.Parse( s.id)>5555));
Whenever I try to run it I receive rhis error. "LINQ to Entities does not recognize the method 'Int32 Parse(System.String)' method, and this method cannot be translated into a store expression."
I have tried seveal different things and nothing is working, so any help would be great.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…