cannot convert Iqueryable to EnumerableRowcollection-why?

Posted by Oswaldlily under C# on 8/16/2012 | Points: 10 | Views : 2598 | Status : [Member] | Replies : 0
EnumerableRowCollection<DataRow> erc=(from excel in _dc.Tablename where excel.column1.Equals(this.Name) select excel);


Error:Error 1 Cannot implicitly convert type 'System.Linq.IQueryable<DataAccessLayer.Linq.Validation>' to
'System.Data.EnumerableRowCollection<System.Data.DataRow>'. An explicit conversion exists (are you missing a cast?)




Responses

(No response found.)

Login to post response