Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "dexmox"

You could do:

 <a class="example" data-contact-id="2"></a>
 listAction: {
            ajaxFunction: _contactsService.getContactsByPolicyHolderId,
            inputFilter: function () {
                return {
                    id: $(".example").attr("data-contact-id")
                };

            }
        },

The returned data can then be evaluated in the column render function:

{
                targets: 0,
                data: null,                
                orderable: false,
                render: function (data) {
                    return data;
                }
},

@timmackey its not broken you need to be logged into GitHub :)

@unidata

This is a pretty solid way, its the way I do it, never have issues.
https://github.com/aspnetzero/aspnet-zero/issues/96#issuecomment-268093697

Only thing you have to do is deal with conflicts, doesn't take very long.

@maliming, thats another good idea for OP.

Could this maybe have something to do with automapper being unable to match the include ?

For example the mapping dto property name does not match the field name CanceledByFk ?

Just wanted to say thanks for version 8 - it's awesome!

You all do great work, and its nice to be acknowledged.

Dont know if you thought about adding this reference when you release the documentation for EF3.0 changes : https://docs.microsoft.com/en-us/ef/core/what-is-new/ef-core-3.0/breaking-changes

Also do you have a more up to date roadmap than on the documenation site?

Thanks again and keep up the good work.

Hi @maliming thanks for the reply and letting me know.

Hi All,

Thank you in advance.

I've read a some posts on here about automapper being updating to 8.1.1 and no longer supporting automapping. https://support.aspnetzero.com/QA/Questions/7402

@maliming created 2 months ago : Automapper 8.1.1 version modifies CreateMissingTypeMaps, default is false.

I've also noticed since migrating to ANZ 7.2.2 I am now having to add additional mappings that were not required in 7.0.

Example Auto mapper before ANZ 7.0 (CustomDtoMapper.cs):

configuration.CreateMap<TaxType, TaxTypeListDto>();

Example Auto mapper after update to ANZ 7.2.2 (CustomDtoMapper.cs):

configuration.CreateMap<TaxType, TaxTypeListDto>();
configuration.CreateMap<TaxType, TaxTypeDto>(); // Required to be added 

For clarification is it now a requirement to map every single mapping from model to dto, and not have automapper automatically create those mappings ?

This is how I've done it:

https://github.com/aspnetzero/aspnet-zero/issues/96#issuecomment-268093697

Hi @maliming,

I had almost exactly the same thing, i was passing Id: instead of id:

Thank you so much!

Showing 21 to 30 of 49 entries