Search code examples
asp.netmany-to-manydynamic-data

Many-to-many relationships in ASP.NET Dynamic Data


I need to use a many to many relationship in my project and since Dynamic Data doesn't support it natively, I would like to ask for a sample of an implementation of something like it.

I'm specifically looking for a way to both create new instances of the target entity and add a new m2m relationship to a record as well as using existing instances to create the relationship.

I'm on a tight schedule, so any help is really appreciated.


Solution

  • David Ebbo (the architect for Dynamic Data) posted a Many-to-Many field template on his blog. Note that this solution is specifically for Entity Framework.