Den angivna metoden Metodnamn i typen Typnamn kan inte översättas till ett LINQ to Entities-lagringsuttryck eftersom instansen som metoden anropas i inte är den ObjectContext som frågan som den används i utvärderas i.
Click to search this error in Google
English version
The specified method 'Method name' on the type 'Type Name' cannot be translated into a LINQ to Entities store expression because the instance over which it is invoked is not the ObjectContext over which the query in which it is used is evaluated.