Questions tagged [automapper-3]

Use this tag for version specific questions about AutoMapper 3 - the convention-based object-to-object mapper and transformer library for .NET. When using this tag also include the more generic [automapper] tag where possible.

This release was focussed on a separation for platform deployments, code comments and LINQ projection. Release blog and notes give further details.

128 questions
0
votes
1 answer

FileNotFoundException: Automapper.Net4 in Silverlight 5 with Automapper 3.1.0

I have strange issue in one of my machine with project on Silverlight 5 with Automapper 3.1.0 where I get following error: System.IO.FileNotFoundException occurred Message=Could not load file or assembly 'AutoMapper.Net4, Version=3.1.0.0,…
Deepak
  • 107
  • 3
  • 12
0
votes
1 answer

Automapper ReverseMap not automatically mapping interfaces

I have created a simple test case to reproduce my problem. Given the following two interfaces public interface IOne { int Id { get; } string PropOne { get; } string PropTwo { get; } string PropThree { get; } …
0
votes
1 answer

How can I map from one object's properties to another's constructor parameters?

Imagine classes like this: class Source { public string Name { get; set; } public string Code { get; set; } } class Destination { public Destination(string name, int code) {} } I want to configure a mapping from Source to…
Sam
  • 40,644
  • 36
  • 176
  • 219
0
votes
1 answer

AutoMapper include all properties of a custom List

class SomeObject { public string name {get;set;} } class CustomCollection : List { public int x {get;set;} public string z {get;set;} } class A { public CustomCollection collection { get ; set; } } class B { public…
newbie
  • 1,485
  • 2
  • 18
  • 43
0
votes
1 answer

Unable to map a service layer entity to domain model entity

I am trying to get some data using one GetData. This business method is called from the controller through a service layer in this Action method: public PartialViewResult Grid() { var model = new DomainModels.Reports.MeanData(); using (var…
Animesh
  • 4,926
  • 14
  • 68
  • 110
0
votes
1 answer

Map encapsulated property to IEnumerable

Given the following classes public class Foo { public string Name { get; set; } } public class Bar { public string Name { get; set; } } public class Foos : IEnumerable { private IList _foos; public Foos(int max = 10) …
Ed Courtenay
  • 520
  • 5
  • 14
-1
votes
1 answer

ECCN for Automapper

I am building a C# VS2012 app that will be used overseas. I have been using Automapper for years and would like to keep using it. One stipulation handed to me is that all add-ons for my project outside of Microsoft must have a published ECCN…
Lorne Redmond
  • 263
  • 1
  • 3
  • 13
-1
votes
1 answer

Xamarin.iOS exception throw when calling Automapper while running with --aot-only

I am having some trouble getting AutoMapper (3.2.1.0) to work on a iPad during debug using Xamarin. I have setup the mac to work as a build host using Xamarin studio 3 and Xamarin.iOS 7.2.3.39. On my Windows system I use Visual Studio 2012. In my…
1 2 3
8
9