I need to convert this SQL to a Linq Query, but as always I can't figure it out :(
guess I need to look a Little deeper into Linq.
select butik.preferences.pref,isnull(butik.userpreferences.selected,0) as selected 
from butik.preferences
left join butik.userpreferences 
     on butik.preferences.id = butik.userpreferences.pref AND 
     butik.userpreferences.userid = 2
thanks Christian
 
     
     
    