I am not interested in the contents of a row, I just want to know if a row exists. The Name column is a primary key, so there will either be 0 or 1 matching row
Name
Of Course
if (dc.Users.Where(u => u.Name == name).Any())
this is best and if multiple conditions to check then it is very simple to write as
Say you want to check the user for company then
if (dc.Users.Where(u => u.ID== Id && u.Company==company).Any())