I have table name is Grades which have a column name Upgrade refer to value which is will be one of the values of the primary key in the table Grades - same table- I try to do this like the following code
public class Grades
{
public int Id { get; set; }
public string Name { get; set; }
public Grades UpGrade { get; set; }
public int UpGradeId { get; set; }
}