AutoMapper / AutoMapper

A convention-based object-object mapper in .NET.

Home Page:https://automapper.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issues with Bidirectional Mapping Configuration and Generic 'Count' Method Error in AutoMapper v6

jordidalmauokay opened this issue · comments

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:

No generic method 'Count' on type 'System.Linq.Enumerable' is compatible with the supplied type arguments and arguments. No type arguments should be provided if the method is non-generic

I think this is better suited for StackOverflow.