how do i change this to linq to sql?
select * from ratesSchedule as rs inner join userdetails as ud on rs.sid = ud.sid and rs.tabletype = 'd'
i got this far
var results = from rs in db.ratesSchedule join ud in db.userdetails on rs.sid equals ud.sid
but i can’t figure out how to add the ‘and rs.tabletype=’d”
If you’d like to do it without where clause, try this:
Personally I’d stick to SQL in this case, since LINQ isn’t even easier to read. 😉