I have this error : LINQ to Entities does not recognize the method
When I run this:
using (SXEntities db = new SXEntities()) {