Quantcast
Channel: Linq: multiple relationships to same table - Stack Overflow
Viewing all articles
Browse latest Browse all 3

Answer by Frustrating Developments for Linq: multiple relationships to same table

$
0
0

By adding two references you are saying select all rows where the PK = this and the PK = that. Since the Pk is unique that condition will always be false.

I don't know linq really well but in SQL you would reference the table twice and alias it as in

....FROM tblstaff staff1, tblstaff staff2


Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>