I am trying to write a simple save and load operation using EDMX in Visual Studio 2008.
This is my load method:
public static DataTable LoadData()
{
using (testEntities context = new testEntities())
{
testEntities temp = new testEntities();
DataTable dt = new DataTable();
IQueryable<DataRow> empResults = (from c in temp.emplyee
select c).AsQueryable();
}
return dt;
}
However I receive the following error:
Cannot implicitly convert type 'System.Linq.IQueryable<>' to 'System.Linq.IQueryable'. An explicit conversion exists (are you missing a cast?)
I am not able to find any exact link for this conversion.