Skip to content

czifro/AutoMapperExtender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AutoMapperExtender

Extensions for AutoMapper for .NET

How to Use

For each Mapper configuration call one of the methods in the AutoMapperExtender class.

To map a class with fewer or more properties to another:

Mapper.CreateMap<A, B>()
  .IgnoreExtraProperties();

Suppose you want to map from one object to another, but the bulk of the mapping is from a property of the source object.

To map from a property of the source object:

Mapper.CreateMap<A, B>()
  .FromSourceProperty(src => src.C);

This will map property C to object A

About

Extensions for AutoMapper for .NET

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages