Issues with Bidirectional Mapping Configuration and Generic 'Count' Method Error in AutoMapper v6 #4470
Replies: 2 comments 3 replies
-
Hi @jordidalmauokay, Due to the error 'generic method 'Count' on type 'System.Linq.Enumerable': Reverse mapping from TTarget to TSource: Without the reverse mapping, AutoMapper wouldn't know how to map from TTarget back to TSource, causing issues in scenarios where bidirectional mapping is necessary. Declarative programming language in certain aspects. LINQ enables declarative queries on collections of data and various data sources. This approach makes it easier to write queries in a declarative style, where you specify what you want to achieve and not how to do it. |
Beta Was this translation helpful? Give feedback.
-
This discussion has been automatically locked since there has not been any recent activity after it was closed. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
When I want to map an expression on TSource to TTarget, it makes sense that my mapping configuration defines a map from TSource to TTarget. However, it also needs a map from TTarget to TSource. Why is that?
Also, mapping a certain expression, that worked on AM v6, now gives me this error, but I have no idea how to fix this:
Beta Was this translation helpful? Give feedback.
All reactions