Skip to content

micro-elements/MicroElements.AutoMapper.NodaTime

Repository files navigation

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.

About

Allows to use NodaTime with AutoMapper

Resources

License

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Sponsor this project

  •  

Packages

 
 
 

Contributors