Most of cases, because the schema of current database is different with original one.
Compare two database schema to find out the difference.
Tuesday, December 10, 2013
How to solve "LINQ to Entities does not recognize the method" problem
Linq will convert syntax into a SQL expression. If any method is not available in SQL query, will get this error.
Such as:
- NQ to Entities does not recognize the method System.Guid Parse(System.String) method, and this method cannot be translated into a store expression.
- NQ to Entities does not recognize the method 'System.String ToString()' method
Solution:
Prepare value before run LINQ query..
Such as:
- NQ to Entities does not recognize the method System.Guid Parse(System.String) method, and this method cannot be translated into a store expression.
- NQ to Entities does not recognize the method 'System.String ToString()' method
Solution:
Prepare value before run LINQ query..
Subscribe to:
Posts (Atom)