1
I’m mapping a relationship 1 x N using a class POCO (Plain Old CLR Object) to be used with the Entity Framework 6. In this case, I own an entity Cart which has several 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 property Products class Cart is a navigation Property. Why should she be marked as virtual
?
I didn’t even realize I already had that question on the website.
– Jéf Bueno
I don’t either, it’s really duplicated.
– Marcell Alves