Kind of new to linq,
whats the simplest way to retrieve a single result using linq?
example, my query
var query = from c in db.productIn
msdn : SingleOrDefault
Make use of Single() or SingleOrDefault() method to get result
Single()
SingleOrDefault()
Also check : Default Extension methods