derole
derole
CC#
Created by derole on 3/20/2025 in #help
AutoMapper example projects with mapping profiles
Because it looks like the resulting compiled code is just the same as if you manually wrote mappings line-by-line in a class constructor etc
64 replies
CC#
Created by derole on 3/20/2025 in #help
AutoMapper example projects with mapping profiles
And also if im not mistaken, it should also be faster than automapper?
64 replies
CC#
Created by derole on 3/20/2025 in #help
AutoMapper example projects with mapping profiles
I cant remember the person who recommended Mapperly but thank you 😄
64 replies
CC#
Created by derole on 3/20/2025 in #help
AutoMapper example projects with mapping profiles
its nice because you can see the resulting compiled code as well, so I can see what its actually doing behind the scenes so I can verify its mapping correctly
64 replies
CC#
Created by derole on 3/20/2025 in #help
AutoMapper example projects with mapping profiles
If I can properly figure out mapperly looks like it might be a great alternative to automapper actually!
64 replies
CC#
Created by derole on 3/20/2025 in #help
AutoMapper example projects with mapping profiles
Yeah think im getting the hang of it thanks all
64 replies
CC#
Created by derole on 3/20/2025 in #help
AutoMapper example projects with mapping profiles
Has anyone got an example Mapperly project I can use to look at implementations?
64 replies
CC#
Created by derole on 3/20/2025 in #help
AutoMapper example projects with mapping profiles
Also tbh looking at mapperly if it generates everything at compile time probs also a lote more performant than reflection too
64 replies
CC#
Created by derole on 3/20/2025 in #help
AutoMapper example projects with mapping profiles
As long as it can do more advanced mappings that automapper can
64 replies
CC#
Created by derole on 3/20/2025 in #help
AutoMapper example projects with mapping profiles
Yeah I will give mapperly a try thanks and see what its like.
64 replies
CC#
Created by derole on 3/20/2025 in #help
AutoMapper example projects with mapping profiles
It involves evaluating the query twice though which I need to look into and see if there's a better way to go about it, going off on a bit of a tangent now though :P
64 replies
CC#
Created by derole on 3/20/2025 in #help
AutoMapper example projects with mapping profiles
The latter I did have some working code but would have to dig it out, it involves storing an IQueryable and getting the index of said object in a query before filtering the IQueryable down further and then limiting to 30 results and fetching the actual data
64 replies
CC#
Created by derole on 3/20/2025 in #help
AutoMapper example projects with mapping profiles
Main one is a scoreboard endpoint, the client needs total records returned based on filters, total in database as well as, if a specific record is requested, the position of it on the scoreboard relative to the entire database with other filters/orderby applied
64 replies
CC#
Created by derole on 3/20/2025 in #help
AutoMapper example projects with mapping profiles
Which seems like a recipie for disaster
64 replies
CC#
Created by derole on 3/20/2025 in #help
AutoMapper example projects with mapping profiles
Yeah well you gotta keep it "in sync" with everything else :P
64 replies
CC#
Created by derole on 3/20/2025 in #help
AutoMapper example projects with mapping profiles
However it seems pointless to store these manually in the database
64 replies
CC#
Created by derole on 3/20/2025 in #help
AutoMapper example projects with mapping profiles
And total record counts
64 replies
CC#
Created by derole on 3/20/2025 in #help
AutoMapper example projects with mapping profiles
So it may want stuff like array lengths separately
64 replies
CC#
Created by derole on 3/20/2025 in #help
AutoMapper example projects with mapping profiles
As one of the apis isn't json and is raw binary for another application which I can't adjust
64 replies
CC#
Created by derole on 3/20/2025 in #help
AutoMapper example projects with mapping profiles
Also yes there will need to be some logic in some parts potentially
64 replies