Click here to Skip to main content
15,908,020 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

I m Getting error like Invalid object name 'EmployeeAction'.but i have this table in my entity..My code is

public List<EmployeeAction> PageLoadviewList(int projectId)

           // int ProjectId = projectId;
         //  return new List<EmployeeAction>();

          var query= @"select * from EmployeeAction ea  where ea.ProjectId=" + projectId;

           var queryoutput = _context.ExecuteStoreQuery<EmployeeAction>(query).ToList();
           var result = new List<EmployeeAction>(queryoutput);
           return result;
           //var query = from cs in _context.EmployeeActions
           //            where cs.ProjectId == projectId
           //            select cs;

           //var employeeAction = query.ToList();
           //return employeeAction;


Pls help me

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900