Base solution for your next web application
Open Closed

AuditLog - ObjectMapper - EntityPropertyChangeDto #7521


User avatar
0
deltavision created

Hi,

using ANZ 7.1 - Core/jQuery

After updating to 7.1 - a lot of "default" mappings has to be added to the CustomDtoMapper.

Now an issue with AuditLog, when opening the details of a history.

The mapping does not work - unless I add specific mappings. That was not necessary before. Am I missing something regarding mapping? - maybe in my merge of project with ANZ FrameWork 7.1?


10 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Have you updated AutoMapper as well ?

  • User Avatar
    0
    deltavision created

    Hi,

    not sure what you mean :-)

    NuGet package Abp.AutoMapper is at latest v4.8.1

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Sorry for the confusion :). I meant to ask verison of https://www.nuget.org/packages/AutoMapper/ in your project.

  • User Avatar
    0
    deltavision created

    Hi,

    were do I find it :-)

    Only thing I can see is the Abp.AutoMapper v4.8.1

  • User Avatar
    0
    deltavision created

    Hi,

    also getting this in ViewModels - MapTo(this)

    Are the issues connected?

  • User Avatar
    0
    deltavision created

    Hi @ismcagdas

    regardig AutoMapper - looks like v8.1.1

  • User Avatar
    0
    ryancyq created
    Support Team

    Hi, this is caused by AutoMapper 8.1 removed supoort for CreateMissingType.

    See https://github.com/aspnetboilerplate/aspnetboilerplate/issues/4724#issuecomment-515679300

  • User Avatar
    0
    deltavision created

    Hi,

    will the issues be fixed in next ANZ update?

    And related to the first post in this case - the mapping on e.g. EntityPropertyChange - will they also be fixed? Maybe there are more missing mappings, that I have not seen yet.

    And the output.MapTo on the standard ANZ things - Is it possible to fix them manually for now? (ANZ v7.1) - and if so, how should the code be?

    Thanks

  • User Avatar
    0
    ryancyq created
    Support Team

    Hi, removal of MapTo method was done in https://github.com/aspnetzero/aspnet-zero-core/pull/2553 and to be released with ANZ v7.2.

    Regarding the EntityPropertyChange, we will check and fix it. (https://github.com/aspnetzero/aspnet-zero-core/pull/2604)

    Thanks for letting us know.

  • User Avatar
    0
    deltavision created

    Hi,

    thank you - awaiting ANZ 7.2 :-)

    Closing this case.