We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,619 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Join 3 Tables

Hi i am using views in order to join 3 tables

return (from p
                    in this.Entities.priceTypes
                    join userType in this.Entities.userTypes on p.userType equals userType.userTypeID
                  // join product in this.Entities.products on p.product equals product.productID

                    select new CommonDB.Views.PriceTypeView()
                    {
                        ProductName = p.product,
                        Price=p.price,
                    });

I managed to join two tables but i got confused on how to joing the third table (commented one) help please

3
Contributors
2
Replies
5 Days
Discussion Span
5 Months Ago
Last Updated
3
Views
Question
Answered
xanawa
Junior Poster
169 posts since Apr 2010
Reputation Points: 7
Solved Threads: 0
Skill Endorsements: 0

The uncommented join looks okay to me. Do you get an error?

pritaeas
Posting Prodigy
Moderator
9,265 posts since Jul 2006
Reputation Points: 1,173
Solved Threads: 1,456
Skill Endorsements: 86

Additional join looks correct to me too.

mwatson81
Newbie Poster
7 posts since Sep 2012
Reputation Points: 0
Solved Threads: 2
Skill Endorsements: 0
Question Answered as of 5 Months Ago by pritaeas and mwatson81

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0655 seconds using 2.7MB