Closed maxtoroq closed 8 years ago
The algorithm to determine the other member of an association is very simplistic. The names, as specified in [Association(Name)]
, must match. If you don't use names, and the other type has more than one association, and the other member is not the first in declaration order, then it picks the wrong member.
The fix was to only match names when they are not null (only needed for corner cases). If names are null, match types.
SqlTable.cs#L1852
Here's the source of the problem: AttributedMetaModel.cs#L995