Questions tagged [automapper]

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

Filter by
Sorted by
Tagged with
-1
votes
0answers
17 views

C# Winforms App ,EF6, DB First with Auto Mapper Generic Repository and UOW context is not updated automatically when database is changed externally [closed]

I've started to work on a single user c# winforms application, with EF6 db first approach, AutoMapper, Generic Repository and UnitOfWork. They have been previously implemented by others former ...
2
votes
0answers
53 views

Mapping an object tree to another object tree

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 ...
3
votes
1answer
649 views

AutoMapper DSL (Computation Expression) for F#

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: ...
5
votes
2answers
41k views

Class to DataTable or Datatable to class mapper

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

Automapper - Mapping a nested collection to a list

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. ...
7
votes
2answers
12k views

Testing mapping code

Obviously, you have to test mapping code somehow, even (or especially) if you use AutoMapper. Is there any way to make it less verbose? ...
4
votes
3answers
1k views

Using AutoMapper to map to and from

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 ...