Copied to clipboard

Flag this post as spam?

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


  • Tom Engan 430 posts 1173 karma points
    Jul 06, 2017 @ 12:05
    Tom Engan
    0

    RelationService - What is it good for?

    Can anyone explain the benefits of using RelationService?

    https://our.umbraco.org/documentation/reference/management/services/relationservice

    The reason I ask is because I have created my own Petapoco database table where I can easily add the same Parent and Child IDs that provide the same IDs, and the programming and filtering becomes less complicated with only one table.

    In my example, this Member / Document linking applies, where I can equally enter both nodeId's (parentId and childId) into my custom Petapoco table as I could do in RelationService.

    What are the pros and cons of posting links in my own Petaphoto table instead of posting them into umbracoRelation (relType=3 - also fetched from umbracoRelationType : id=3, alias=memberHikingDestinations)? enter image description here enter image description here enter image description here

  • Ismail Mayat 4511 posts 10091 karma points MVP 2x admin c-trib
    Jul 06, 2017 @ 15:27
    Ismail Mayat
    0

    Tom,

    You get api to work with it for free. I love how its been used on nexu project https://our.umbraco.org/projects/backoffice-extensions/nexu/ to keep tabs of where stuff is being used

Please Sign in or register to post replies

Write your reply to:

Draft