Click here to Skip to main content
15,901,035 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
HI, i am new to MVC4. can anyone tel me how to write join queries in mvc. in sql server the inner join query was select p.Name,p.Phone from dbo.Properties P inner join dbo.DevelopersProperties DP on p.Id = DP.PropertyId inner join dbo.Developers D on d.Id=dp.DeveloperId where d.Id=1
Posted

 
Share this answer
 
var ab = from ba in tblproperties
join a in tbldevelopers on ba.developerId equals a.developerid
select new
{
ba.name,
ba.phone
};
 
Share this answer
 

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