Getting "Could not find an implementation of the query pattern for source type 'ExcelQueryable<T>'. " Error

Viewed 356

I am using LinqToExcel Nuget package to read excel file.

Below is my code

            var excelFile = new ExcelQueryFactory("DeployQueues");

        var tableData = from z in excelFile.Worksheet<AllQueues>("Data")
                        select z;

But I am getting below compiler error.

Could not find an implementation of the query pattern for source type 
'ExcelQueryable<AllQueues>

class for AllQueues

 public class AllQueues 
 {
    [ExcelColumn("Company Title")] 
    public string Name { get; set; }

    [ExcelColumn("Providence")] 
    public string State { get; set; }

    [ExcelColumn("Employee Count")] 
    public string Employees { get; set; }

 }
2 Answers
Related