Esempio n. 1
0
 /// <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);
     }
 }
Esempio n. 2
0
        /// <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);
            }
        }
Esempio n. 3
0
 public UmbracoMapper(MapDefinitionCollection profiles) : this(profiles, Current.ScopeProvider)
 {
 }