/// <summary> /// Initializes a new instance of the <see cref="UmbracoMapper"/> class. /// </summary> /// <param name="profiles"></param> public UmbracoMapper(MapDefinitionCollection profiles) { foreach (var profile in profiles) { profile.DefineMaps(this); } }
/// <summary> /// Initializes a new instance of the <see cref="UmbracoMapper"/> class. /// </summary> /// <param name="profiles"></param> /// <param name="scopeProvider"></param> public UmbracoMapper(MapDefinitionCollection profiles, IScopeProvider scopeProvider) { _scopeProvider = scopeProvider; foreach (var profile in profiles) { profile.DefineMaps(this); } }
public UmbracoMapper(MapDefinitionCollection profiles) : this(profiles, Current.ScopeProvider) { }