private MappingConfigurator <TSource, TTarget> UseNamePrefixes(params string[] prefixes)
 {
     MapperContext.Naming.Add(ConfiguredNamingPattern.Prefixes(prefixes, ConfigInfo));
     return(this);
 }
Esempio n. 2
0
 /// <summary>
 /// Expect members of all source and target types to potentially have any of the given name <paramref name="prefixes"/>.
 /// Source and target members will be matched as if the prefixes are absent.
 /// </summary>
 /// <param name="prefixes">The prefixes to ignore when matching source and target members.</param>
 /// <returns>
 /// An <see cref="IGlobalMappingSettings"/>, with which to globally configure other mapping aspects.
 /// </returns>
 public IGlobalMappingSettings UseNamePrefixes(params string[] prefixes)
 {
     MapperContext.Naming.Add(ConfiguredNamingPattern.Prefixes(prefixes, GlobalConfigInfo));
     return(this);
 }