public class GeneralA
{
public int Id { get; set; }
public int ForeignKeyId { get; set; }
public string Name { get; set; }
}
or
public class GeneralA
{
public int Id { get; set; }
public ForeignClass ForeignKey { get; set; }
public string Name { get; set; }
}
If it's the second scenario, how do you encounter scenarios where you are doing a fetch, do you just declare the object to be of type nullable? or do we have to make an additional check that if the object is nullable, then don't do a fetch from that class?