Category Archives: automapper

Entity Framework extensions for AutoMapper

I pushed out a little library I’ve been using for the last couple years for helping to use AutoMapper and Entity Framework together. It’s a series of extension methods that cuts down the number of calls going from a DbSet … Continue reading 

| 10 Comments

AutoMapper dev builds moved to MyGet

I’m moving the dev builds for AutoMapper to MyGet, here: https://www.myget.org/F/automapperdev/api/v2 I’ll still have pre-release builds on NuGet, but it’ll be a little less noisy having the NuGet builds be only builds from master. <eom>  

| Leave a comment

CQRS with MediatR and AutoMapper

CQRS is a simple pattern – two objects for command/queries where once there was one. These days just about every system I build utilizes CQRS, as it’s a natural progression from refactoring your apps around the patterns arising from reads … Continue reading 

| 60 Comments

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 

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

| 7 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: parameterized projections

Back in AutoMapper 3.1, I added a feature to allow for runtime values to be used in mappings: This worked great for runtime mappings, but wasn’t supported in the LINQ projections. These days, I’m pretty much solely using the LINQ … Continue reading 

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