0
Hello,
In an application has a class that I need to do a Onetomany mapping, this parent class will be responsible for performing the persisntecia of the daughter class. My question is, I mapped Bag in the parent class as below:
Bag(x => x.ItensMovimentacaoBanco, x =>
{
x.Cascade(Cascade.Persist);
x.Key(y =>
{
y.Column("MovimentacaoBancoId");
y.NotNullable(true);
});
x.Lazy(CollectionLazy.Lazy);
}, x => x.OneToMany());
Now I also need to do the Manytoone mapping on the son class?
Yes, it does, even because it’s recommended for framework.
– Leonel Sanches da Silva