Skip to main content

Questions tagged [automapper]

A convention-based object-to-object mapper and transformer for .NET.

Filter by
Sorted by
Tagged with
1 vote
1 answer
65 views

We have a mid-size project. Two projects in solution, API and Domain. Domain contains services with business logic. We don't use repositories. Just call DbContext directly from services (that's fine ...
user1614543's user avatar
1 vote
2 answers
955 views

I have the following code to register the dependency injection for automapper: ...
Pete's user avatar
  • 651
2 votes
0 answers
92 views

Programming to an interface is a design principle that enhances the flexibility of software by hiding implementation details. Consider an object tree that only exposes an interface, but you want to ...
annemartijn's user avatar
3 votes
1 answer
1k views

I have created a DSL for AutoMapper using an F# Computation Expression Builder. The Computation Builder itself is fairly simple, and effectively defines 5 basic operations: ...
Aaron M. Eshbach's user avatar
7 votes
2 answers
47k views

My code goes from a class to DataTable, and back again. It populates the class's public properties, or creates DataColumns whose ...
Adam White's user avatar
21 votes
1 answer
103k views

I'm using Automapper to do some mapping from XSD-generated serialization object to more sane POCO's. I'm having an issue with a particular type of mapping. ...
Rob H's user avatar
  • 261
8 votes
2 answers
16k views

Obviously, you have to test mapping code somehow, even (or especially) if you use AutoMapper. Is there any way to make it less verbose? ...
vorou's user avatar
  • 999
4 votes
3 answers
2k views

Sometimes, I need to map from a Domain entity to a ViewModel - to display information. Other times, I need to map from a ViewModel to a Domain entity - for persistance of data. Is this kosher or ...
Only Bolivian Here's user avatar