Dynamic data website Many to Many field template example for join table with payload columns RRS feed

  • Question

  • User-158600477 posted


    Can anyone please help me with a sample code for many to many custom field template for a join table with payload columns.

    Thanks in advance.


    Wednesday, March 5, 2014 10:13 AM


All replies

  • User-330204900 posted

    Hi this will not work with EF as the table with payload will appear as another table rather than a relationship. you will need to manually code the template for the specific relationship sorry.

    Wednesday, March 5, 2014 10:30 AM
  • User-158600477 posted

    Hi Stephen,

    Yes, I see couple of threads with the same answer from you. As newbie to DD, it would be great if you can provide some input or guidance on how to write the custom template to handle this type of many to many relationship.

    Thank you,



    Wednesday, March 5, 2014 10:35 AM
  • User-330204900 posted

    It's not trivial, but there was a thread in regard to Domain Service that may give you a pointer, I don't have the time to spend searching at the moment but they did get a solution which may be adapted to EF.

    Wednesday, March 5, 2014 10:49 AM
  • User-158600477 posted

    No problem, I will find the thread and try to use in EF. However please share any sample you might have to get over this hurdle when you get time.



    Wednesday, March 5, 2014 11:06 AM
  • User-933407369 posted

    i would suggest you refer to the link:

    A ‘Many To Many’ field template for Dynamic Data


    M:M Mapping - EF 4.3 CodeFirst (Existing Database)

    Hope it can inspire you.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, March 6, 2014 3:46 AM