Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Aug 05, 2013 @ 15:34
    Ismail Mayat
    0

    uMapper issue

    Using umbraco 6.1.3 with uComponents 5.4 and uMapper and am getting the following error

    System.Reflection.AmbiguousMatchException: Ambiguous match found

    this is when i try

    Section section = uMapper.Find<Section>(sectionId);
    

    my model looks like

        public class Section
    {
    
        public int Page { get; set; }
        public string Name { get; set; }
        public string SectionSummary { get; set; }
    }
    

    My mapping in ApplicationStartupHandler looks like

            uMapper.CreateMap<Section>();
            uMapper.CachingEnabled = true;
    

    I have doc type with Alias Section and 2 properties on it Page and SectionSummary I want Name to map to node.Name was thinking that would happen automagically?

    Any ideas?

    regards

    Ismail

Please Sign in or register to post replies

Write your reply to:

Draft