Jan 05 2010

Error usando System.Linq

Category: ProgramacionIndigo @ 5:28 PM

El otro día el Visual Studio me dio el siguiente error de compilación

Error 8 Could not find an implementation of the query pattern for source type
'System.Data.Linq.Table<Model.Provincia>'. 'Select' not found.
Are you missing a reference to 'System.Core.dll' or a using directive for 'System.Linq'?

La verdad es que el error es bastante raro y no deja muy claro a que se refiere. Una búsqueda por google y tras un ratillo leyendo respuestas encontré la solución. Tan sólo hay que añadir la referencia a System.Linq.

using System.Linq;

Tags: ,