Hi
So many time we will get situation to join two table on basis of some condition. If we have to do inner join in Entity Framework then we can do like this
using (TestEntities TE = new TestEntities())
{
var query = from m in TE.tblEmps
join d in TE.tblDepts on m.Id equals d.Id
select new {m.EmpName,d.DeptName};GridView1.DataSource = query;
GridView1.DataBind();}