Reputation: 241
What's wrong with my code? For the Funcionario table and the Projeto table are underlined in red ...
DataContext db = new projfuncionarioDataContext();
var query = from p in db.Funcionario
join c in db.Projeto on p.Cdfunc equals c.Cdfunc
select new
{
ID = p.Cdfunc,
Produto = p.Nome,
};
GridView1.DataSource = query;
GridView1.DataBind();
Upvotes: 2
Views: 544
Reputation: 110151
DataContext db = new projfuncionarioDataContext();
Should be:
projfuncionarioDataContext db = new projfuncionarioDataContext();
Upvotes: 7