ASP.NET 动态数据中的多对多关系
我需要在我的项目中使用多对多关系,并且由于动态数据本身不支持它,所以我想索要类似的实现示例。
我专门寻找一种方法来创建目标实体的新实例并向记录添加新的 m2m 关系以及使用现有实例来创建关系。
我的日程很紧,所以非常感谢您的帮助。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
David Ebbo(动态数据架构师)发布了 多对多字段模板在他的博客上。 请注意,此解决方案专门针对实体框架。
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.