sixeyed/projects — Issue #1: Mapping Default Conventions support - Feature Request
Author: MarisicDotNet
Created: 2012-01-04 15:03:00+00:00
State: open

I find the strategy pattern you included to be very powerful. The downside it is overly verbose for standard usage.

Having to repeatedly define:

.Matching()
.Cache()

In mapping usage would not be very optimal. I would propose exposing static properties on your AutoMap class for

AutoMap.DefaultNamingStrategy which would default to your SimpleNameMatchingStrategy
AutoMap.DefaultCachingStrategy which would default to null

These scenarios would cover users easily for 99% of the time. It would still make sense to allow individual maps to override the default on a case by case basis if it would ever be needed.