Today at work in ran into a problem where I needed to do an inner join of two tables, but with multiple criteriums.
At first it wasn’t quite obvious how it should be done, but the solution was quite simple actually:
Making a simple join with one criteria is easy:
1 | var Result = from t1 in db.Table1 |
Making it with multiple criteriums is almost as easy
You just need to create anonymous objects.
1 | var Result = from t1 in db.Table1 |