automapper-5 Questions
2
Solved
I am at a loss as to how to use the new IValueResolver interface in the new version of AutoMapper. Perhaps I used them improperly in the previous versions of AutoMapper...
I have a lot of model cl...
Duky asked 11/7, 2016 at 12:2
3
How can I make AutoMapper to map missing unmapped properties to a dictionary inside the destination object? (Like ExtensionData during serialization)
Example:
class Source
{
public int A {get;se...
Nellenelli asked 4/4, 2017 at 8:55
6
Solved
I trying to update nested collection (Cities) of Country entity.
Just simple enitities and dto's:
// EF Models
public class Country
{
public int Id { get; set; }
public string Name { get; set; ...
Inestimable asked 5/1, 2017 at 10:22
2
Solved
TL;DR: I'm having trouble with Polymorphic mapping. I've made a github repo with a test suite that illustrates my issue. Please find it here: LINK TO REPO
I'm working on implementing a save/load f...
Allbee asked 5/10, 2016 at 22:43
2
I'm trying to register AutoMapper 5.1.1 with CastleWindsor, but I don't know, where to properly call Mapper.Initialize().
AutoMapper profile:
namespace AutoMapper_DI.Mappings
{
public class WebM...
Legislation asked 23/9, 2016 at 13:56
2
Solved
I Use Automapper 5.2.0 In My Project. When I Use ProjectTo() In Code Get This Error:
Mapper not initialized. Call Initialize with Appropriate configuration. If you are trying to use mapper insta...
Cynde asked 31/1, 2017 at 15:35
2
Solved
I have classes to map, but they don't have default constructors, and I don't want them to have. This is because I only map to/from already existing objects.
public class Order
{
public string Ord...
Shortterm asked 25/4, 2017 at 9:37
1
I am trying to map from a child object of source to destination(as parent object).
Source Model:
public class SourceBaseResponse<T> where T : new()
{
public string Type { get; set; }
pub...
Whited asked 2/2, 2017 at 6:50
1
Solved
Automapper 5.2 (latest by the moment) ignores ExplicitExpansion() configuration if it is configured in the mapping of Base Data Transfer Object. But it still works correctly if mapping is configure...
Carolyn asked 30/1, 2017 at 21:36
1
Solved
I am having trouble following the wiki in this instance. I wanted to use Automapper 5.2. I cannot find a simple end for end example that shows a solid configuration with context. By context I mean ...
Acquainted asked 19/12, 2016 at 10:40
1
Solved
Previously when I used Automapper v3.x ignoring unmapped properties could be done by simply adding a .IgnoreUnmappedProperties() extension which looked like this
public static class AutoMapperExte...
Pagas asked 11/10, 2016 at 9:58
1
Solved
I'm having a System.StackOverflowException when trying to Map something in AutoMapper 5 that worked previously with AutoMapper 4.
After googling a bit around I found out that it caused by Circula...
Thessalonians asked 17/11, 2016 at 9:3
0
I have a Student class inherited from ApplicationUser base class (ASP.NET Identity) and there is a ViewModel of it called StudentViewModel as shown below:
Entity Classes:
public class Application...
Amphibolite asked 17/9, 2016 at 0:4
1
Solved
I am having following Models
Models
public class Dish
{
[Required]
public Int64 ID { get; set; }
[Required]
public string Name { get; set; }
[Required]
public string Description { get; set;...
Smog asked 11/9, 2016 at 15:55
1
Solved
I've recently upgraded from Automapper 4.2.1 to 5.1.1 and am having issues with a previously valid mapping involving open generics.
Previously, within the automapper configuration, I had the follo...
Awe asked 16/8, 2016 at 19:49
1
© 2022 - 2024 — McMap. All rights reserved.