FluentAPI, Joining Table of the same entities
I have entities
User: id, payments;
Payments: id, user1, user2
I want user to have n payments,
and payment to have only 2 users (payments entity)
How do I specify that in Fluent API?
.HasMany(u => u.Payments)
.WithOne(p => p.User1);
.HasMany(u=>u.Payments)
.WithOne(p => p.User2); ? Seems bad to me
0 Replies