This question is locked. New answers and comments are not allowed.
Hi
I want to know where is the right place to define One-To-Many relations. on the One side or the Many side?
What about IsManaged and IsDependent methods?
For example is this ok for managed and cascade delete one-to-many relation?
Thanks.
I want to know where is the right place to define One-To-Many relations. on the One side or the Many side?
What about IsManaged and IsDependent methods?
For example is this ok for managed and cascade delete one-to-many relation?
OneSide.HasAssociation(o => o.Collections)
.IsDependent()
.WithOpposite(c => c.One)
.HasConstraint((o,c) => o.id == c.OneId)
.IsManaged();
Thanks.