0
I have two tables: A
and B
On the table A
have:
Id
Nome
On the table B
have:
Id
Nome
IdA(FK) -> de A
In the application would be that?
public class A
{
public int Id { get; set; }
public string Nome { get; set; }
public ICollection<B> Bs { get; set; }
}
and in B
I would do
public class B
{
public int Id { get; set; }
public string Nome { get; set; }
public int? IdA { get; set; }
public virtual A A { get; set; }
}
Is that or opposite? Just to understand about virtual properties