I don't know if the automapper wiki
(
https://github.com/AutoMapper/AutoMapper/wiki) is up-to-date, but
there's a few options like:
Specifically defining which source field will be used in destination mapping:
.ForMember(d => d.Foo, o => o.MapFrom(s => s.FooSource))
Ignoring a property:
.ForMember(d => d.SecurityLevel, o => o.Ignore())
Defining a substitute value when the source property is null:
.ForMamber(d => d.Age, o => o.NullSubstitute(18))
There's also options like:
.ResolveUsing (use an IOC container to create the destination object)
.UseValue to define a specific value for a field when mapping.
If there's something specific you're looking for, just ask! :)
---
Patrick Steele
http://weblogs.asp.net/psteele
On Tue, Jul 3, 2012 at 4:10 PM, Robert Gibbens <
robgi...@gmail.com> wrote:
> I notice that Map() takes a IMappingOperationOptions and an
> Action<IMappingOperationOptions>. Is there ANY documentation or sample usage
> of this anywhere?
>
> --
> You received this message because you are subscribed to the Google Groups
> "AutoMapper-users" group.
> To view this discussion on the web visit
>
https://groups.google.com/d/msg/automapper-users/-/WWVFnn6OuEMJ.
> To post to this group, send email to
automapp...@googlegroups.com.
> To unsubscribe from this group, send email to
>
automapper-use...@googlegroups.com.
> For more options, visit this group at
>
http://groups.google.com/group/automapper-users?hl=en.