I'm mapping a 1 x N relationship using a POCO class to use with the Entity Framework 6 . In this case, I have a Cart entity that has multiple Products :
public class Carrinho
{
//Outras propriedades da classe
public virtual ICollection<Produto> Produtos { get; set; }
}
public class Produto
{
//Propriedades da classe
}
In this scenario, we say that the Products property of the Cart class is a navigation property . Why should it be marked as virtual
?