Category Archives: automapper

AutoMapper support for Xamarin Unified (64 bit)

I pushed out a prerelease package of AutoMapper for Xamarin Unified, including 64-bit support for iOS. http://www.nuget.org/packages/AutoMapper/ If you’ve had issues with Xamarin on 64-bit iOS, removing an adding the AutoMapper NuGet package reference should do the trick. And yes, … Continue reading 

| Leave a comment

AutoMapper 3.3 feature: Projection conversions

AutoMapper 3.3 introduced a few features to complement the mapping capabilities available in normal mapping. Just like you can do ConvertUsing for completely replacing conversion between two types, you can also supply a custom projection expression to replace the mapping … Continue reading 

| 1 Comment

AutoMapper 3.3 feature: open generics

One of the interesting features of AutoMapper 3.3 is the ability to map open generic types. Open generics are those that don’t supply type parameters, like: AutoMapper had some limited support for certain built-in open generics, but only the collection … Continue reading 

| 7 Comments

AutoMapper 3.3 released

View the release notes: AutoMapper 3.3 Release Notes And download it from NuGet. Some highlights in the release include: Open generic support Explicit LINQ expansion Custom constructors for LINQ projection Custom type converter support for LINQ projection Parameterized LINQ queries … Continue reading 

| 4 Comments

Azure Mobile Services with AutoMapper

At the recent Xamarin Evolve conference, Paul Batum gave a great talk on Azure Mobile Service in cross-platform business apps, part of which included a piece on how AutoMapper fits in with their overall system: There were sooooo many of … Continue reading 

| 1 Comment

Projecting computed properties with LINQ and AutoMapper

Another from the “wicked awesome” category of AutoMapper. Other blogs about AutoMapper and LINQ: Efficient querying with LINQ, AutoMapper and Future queries Using AutoMapper to prevent SELECT N+1 problems Using AutoMapper to perform LINQ aggregations One current limitation of ORM … Continue reading 

| 7 Comments

AutoMapper 3.2.0 released

Full release notes on the GitHub site Big features/improvements: LINQ queryable extensions greatly improved ICollection supported MaxDepth supported Custom MapFrom expressions supported (including aggregations) Inherited mapping configuration applied Windows Universal Apps supported Fixed NuGet package to not have DLL in … Continue reading 

| 17 Comments

Using AutoMapper to perform LINQ aggregations

In the last post I showed how AutoMapper and its LINQ projection can prevent SELECT N+1 problems and other lazy loading problems. That was pretty cool, but wait, there’s more! What about complex aggregation? LINQ can support all sorts of … Continue reading 

| 8 Comments

Using AutoMapper to prevent SELECT N+1 problems

Back in my post about efficient querying with AutoMapper, LINQ and future queries, one piece I glossed over was how View Models and LINQ projection can prevent SELECT N+1 problems. In the original controller action, I had code like this: … Continue reading 

| 13 Comments

Efficient querying with LINQ, AutoMapper and Future queries

Even after all these years, I’m still a big fan of ORMs. One common complaint over the years is people using ORMs use the tool identically for both reads and writes. With writes, I want tracked entities, managed relationships, cascades … Continue reading 

| 30 Comments