Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 2.14 KB

File metadata and controls

44 lines (32 loc) · 2.14 KB

MicroElements.AutoMapper.NodaTime

Allows to use NodaTime with AutoMapper.

Statuses

License NuGetVersion NuGetDownloads MyGetVersion

Build Travis Coverage Status Gitter

Installation

Package Reference:

dotnet add package MicroElements.AutoMapper.NodaTime

Usage

var mapper = new Mapper(
    new MapperConfiguration(cfg =>
    {
        // Adds NodaTime converters to AutoMapper.
        cfg.AddProfile<NodaTimeProfile>();
    }));

var localDateTime = new LocalDateTime(2020, 03, 26, 23, 34, 45);
var dateTime = mapper.Map<LocalDateTime, DateTime>(localDateTime);

Build

Linux: Run build.sh

License

This project is licensed under the MIT license. See the LICENSE file for more info.