Last post Mar 06, 2014 03:46 AM by Happy Chen - MSFT
Mar 05, 2014 10:13 AM|mkbabu84|LINK
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.
Mar 05, 2014 10:30 AM|sjnaughton|LINK
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.
Mar 05, 2014 10:35 AM|mkbabu84|LINK
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.
Mar 05, 2014 10:49 AM|sjnaughton|LINK
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.
Mar 05, 2014 11:06 AM|mkbabu84|LINK
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.
Mar 06, 2014 03:46 AM|Happy Chen - MSFT|LINK
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.