Hi
I have 2 classes . How i can create CountryId as Foreign Key in States Class
public class Country
{
[Key]
public int CountryId { get; set; }
public string CountryName { get; set; }
}
public class State
{
[Key]
public int StateId { get; set; }
public string StateName { get; set; }
public int CountryId { get; set; }
}Thanks