Replies: 3 comments 6 replies
-
|
I did a rename on the namespace and it made 12 changes. There is now ambiguity in TestAdaptHelper which requires prefixing AutoMapper to IMapper and Mapper https://github.com/MapsterMapper/Mapster/blob/master/src/Benchmark/TestAdaptHelper.cs Once this is corrected, you can build and run all the tests. The only breaking change would be for projects that are using both Mapster and AutoMapper that they may need to further qualify IMapper and Mapper with either AutoMapper or Mapster. I can't know how big a change this is because I am only using Mapster, but for those migrating to Mapster from AutoMapper, it could be annoying. I added AutoMapper to my mapping project and it caused no issues. |
Beta Was this translation helpful? Give feedback.
-
|
I did not go through the whole process of changing the namespace, building and then referencing this new version of Mapster.Tool, but I could later today. Users migrating from AutoMapper to Mapster would likely be referencing both packages at the same time. I also use global usings except when I have a type that is used by another library. Then I use the using at the class level and even put a comment not to add it to global usings. Here is an example from my code base using Grpc.Core; // do not add to GlobalUsings as Grpc.Core has a class named Status I do not think it will be an issue but I have no real data to base this upon, only my own experience. |
Beta Was this translation helpful? Give feedback.
-
|
I can't say for sure, but it looks more like "By Design" from the original author of Mapster. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, I was wondering why the
IMapperandServiceMapperDefinition seems to be the only one with the NamespaceMapsterMapperinstead of the "regular"Mapsternamespace that`s used everywhere else? 😅Fir example, quick search in
src/directory:The interface is not equally named than the Namespace so this shouldn't be a reason in my opinion the IDE would assume we want to call a namespace as type...
Mediator.Mediatorbrings potentially more problems thanMapster.IMapperwith this in my opinionI would assume there will be a reason you did this, because there is the pragma disable for ReSharper to not check this for once, but I am not sure why ?
Issue search was not giving any answer to this that I would have seen, so if I missed it, feel free to tell!
Beta Was this translation helpful? Give feedback.
All reactions