Click here to Skip to main content
15,921,351 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I got some pattern Nazi at work and they are like "you MUST use AutoMapper otherwise we refuse your project"!

When I look at AutoMapper I am like meh...
I can vaguely see that some people might find it useful in some cases....
But, almost on matter of principle myself, I hate pattern Nazi and they motivate me to do exactly the opposite of what they say...

What are your though on AutoMapper?.. Am I going to die if I don't use it?
Posted

1 solution

Automapper is an amazing small, simple and elegant mapper in this world and moreover it's OpenSource :)
 
Share this answer
 
Comments
Super Lloyd 21-Oct-13 20:20pm    
So.. I don't really need it.
It's just that *IF* I ever feel like I need a mapper, then I should use that one? Just as I thought! ^^
Ranjan.D 21-Oct-13 20:38pm    
Some times it becomes so mandatory , consider an example you are implementing a WCF Service where in you might or not be using EF for data access or say you will be having a data access object , now that you need to map the data access object to your data contract as a return value of your service and We can do vise versa. There are lots of circumstances were in we can make use of Automapper.
Super Lloyd 21-Oct-13 21:59pm    
yeah basically I am looking for example where I can put it to good use!
Mapping field for the sake of doing it is counter productive!...
I thought of another use, when using .edmx, the EF class have no validation attribute, annoying. Intermediary class with validation attribute might the less cumbersome solution to that!
Ranjan.D 21-Oct-13 22:13pm    
Please take a look into the Automapper unit tests https://github.com/AutoMapper/AutoMapper/tree/develop/src/UnitTests , you will come to know various scenarios you can make use of it.

I have seen many peoples using even in MVC Projects to build ViewModels. I will shortly share with you free realworld samples.
Ranjan.D 21-Oct-13 23:23pm    
Please take a look into the Automapper unit tests https://github.com/AutoMapper/AutoMapper/tree/develop/src/UnitTests , you will come to know various scenarios you can make use of it.

I have seen many peoples using even in MVC Projects to build ViewModels. I will shortly share with you free realworld samples.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900