i want select distinct firstName's column from Database with linq
my class is:
public partial class user
{
public string firstName{ get; set; }
public string lastName{ get; set; }
public int dgree{ get; set; }
public string class{ get; set; }
}
i using below code but return full list.
var query = (from user _db.Users
select user).Distinct().OrderBy(u=>u.firstName).ToList();