Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [automapper]

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

1
vote
0answers
78 views

Eager loading using Auto.mapper [closed]

I am using eager loading. My problem that I am having is that when using (Auto.Mapper 4.1.1) Mapper.DynamicMap the method is going back to sql server for each relationship. It's taking about 2 ...
3
votes
1answer
176 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: ...
1
vote
0answers
330 views

WebAPI async task pattern, with IDbContextScopeFactory and automapper

I normally abstract data access code into another layer, but I'm currently prototyping and it's not necessary. Does anyone see any issues with this as a general data query pattern, considering the ...
5
votes
2answers
32k 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 ...
18
votes
1answer
55k 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. ...
6
votes
2answers
6k 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? ...