AutoMapper extensions

Automapper-related extensions for working with different types of collections.

Installation

Collections package is available on NuGet.

dotnet add package Structr.Collections.Extensions.Automapper

Usage

Provided extensions allow to perform one-string mappings between collections without a redundant code.

var list = new List<Foo>
{
     new Foo { Id = 1, Name = "Bar"},
     new Foo { Id = 2, Name = "Baz"}
};
var mappedCollection = mapper.MapList<FooDto>(list);

Last updated