For the Entity below
class Entity
{
public AnotherEntity AT { get; set; }
}
Many times I see people building model in this way
class Entity
{
public AnotherEntity AT { get; set; }
public int AT_Id { get; set; }
}
What is the use of this foreign key property? I can even see that Julie Lehrman recommend going this way. Why don't I just use Entity.AT.Id
to access and update the model.