+1-888-365-2779
Try Now
More in this section

Forums / Sitefinity SDK / Duplicate metadata entries found?

Duplicate metadata entries found?

3 posts, 1 answered
  1. Augus
    Augus avatar
    34 posts
    Registered:
    29 Mar 2011
    04 May 2011
    Link to this post
    hi all, i have two model in my module one let say one is category an the other is product. so it has parent and child relationship. i also have two FluentMetadatasource class. but when i compile it give me error

    Error    10    Duplicated Metadata entries found for type Telerik.Sitefinity.Security.Model.PermissionsInheritanceMap. Please use only one way of mapping.    C:\Program Files (x86)\Telerik\Sitefinity 4.1\Projects\Project4.1\Namespace.Module\obj\Debug\Namespace.Module.dll

    when i remove on of the FluentMetadatasource class it build fine. so what exactly this class do? is it fine just one class? sorry for such a newbie question.
  2. George
    George avatar
    28 posts
    Registered:
    24 Sep 2012
    09 May 2011
    Link to this post
    Hello Augus,

    It is fine to have just one class, until it maps all the persistent classes.

    The OpenAccess enhancer looks up for all inheritors of the FluentMetadataSource class in the assembly, currently being enhanced, initializes them and then goes through them in order to get the collections of mappings. Using the FluentMetadataSource Class article gets into details on this.


    Kind regards,
    George
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

    Answered
  3. hkdave95
    hkdave95 avatar
    1 posts
    Registered:
    08 Nov 2006
    18 Nov 2015 in reply to George
    Link to this post
    The link in the previous post is broken.
3 posts, 1 answered