Category Archives: automapper

Cross-Platform AutoMapper (again)

Building cross-platform support for AutoMapper has taken some…interesting twists and turns. First, I supported AutoMapper in Silverlight 3.0 five (!) years ago. I did this with compiler directives. Next, I got tired of compiler directives, tired of Silverlight, and went … Continue reading 

| 3 Comments

AutoMapper support for ASP.NET 5.0 and ASP.NET Core 5.0

In the vein of “supporting all the frameworks”, I’ve extended AutoMapper to support ASP.NET 5.0 and CoreCLR (aspnetcore50). For those that are counting, I’m up to 11-12 different platforms supported, depending on how you tally: aspnet50 aspnetcore50 MonoAndroid MonoTouch net40 … Continue reading 

| 5 Comments

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 

| 2 Comments

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 

| 2 Comments

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 

| 7 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 

| 2 Comments

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