I want to get data from two tables with single Entity class. How??
public class HomeViewModel { [Key] [Column(\"candidate_ID\")] public int cand
Check data in daatbase table first. It is because you might not have related data in table2. i.e table1 primary key value (which is candidate_id) is not present in table2 foreign key candidateID...