Questions tagged [automapper-7]

Use this tag for version specific questions about AutoMapper 7 - 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.

17 questions
0
votes
1 answer

What is the "instance" equivalent to using the "static" Mapper.Map inside CreateMap using AutoMapper 7.0.1?

I'm trying to upgrade to AutoMapper 7.0.1 which no longer uses static methods. I'm getting the following error: Mapper not initialized. Call Initialize with appropriate configuration. If you are trying to use mapper instances through a …
adam0101
  • 29,096
  • 21
  • 96
  • 174
-1
votes
1 answer

Upgrading AutoMapper from version 7 to version 10 mapping problem

I have this code example done in LinqPad 5 (.Net Framework): void Main() { var o = new A() { b = new B() { Msj = "Hello, world!" } }; var r = MapObject(o); r.Dump(); } public class A { public B b {get;set;} } public class…
rasputino
  • 691
  • 1
  • 8
  • 24
1
2