Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
C#
_wishlist wslist = new _wishlist();
            var joinquery = (from mobtab in rdb.mobiletablets
                             join w in rdb.wishlists on mobtab.MobID equals w.MobID
                             join u in rdb.users on w.UID equals u.UID
                             
                             select new
                             {
                                 MobID = mobtab.MobID,
                                 UID = w.UID,
                                 Title = mobtab.ModelName,
                                 Img = mobtab.Image,
                                 Price = mobtab.Price,
                             });
           
            wslist.wlist = joinquery.ToList();
            return View(wslist);
Posted
Updated 11-Jun-15 1:36am
v5
Comments
CHill60 10-Jun-15 7:40am    
We are not psychic...You will need to tell us what the problem is and share the code that you are having a problem with.

Since you don't give us any idea of what you're doing, the best answer you're going to get is this[^].
 
Share this answer
 
Actually this is not a syntax for implement joins in Entity Framework, Please refer it:

http://www.c-sharpcorner.com/UploadFile/97fc7a/implement-joins-in-entityframewok-using-db-context-and-linq/[^]
 
Share this answer
 
Comments
[no name] 11-Jun-15 3:19am    
Thanks guys for your 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