how do i write the following sql query in Lambda expression.
select rating from ratingtable where movieId=@movieid and userid=@userid
var results = from rt in ratingtable.Where(rt => rt.movieId == movie && rt.userid == user)
select rt
This is a great place to start as well for simple queries: http://code.msdn.microsoft.com/101-LINQ-Samples-3fb9811b