The ConfigureMapping example should use the new syntax

The ConfigureMapping code examples used the old syntax, which gives an obsolete warning. The example should use the new syntax instead.
Merge pull request #351 from mariusGundersen/patch-1

The ConfigureMapping example should use the new syntax