ASP.NET 动态数据中的多对多关系

发布于 2024-07-07 01:45:04 字数 142 浏览 6 评论 0原文

我需要在我的项目中使用多对多关系,并且由于动态数据本身不支持它,所以我想索要类似的实现示例。

我专门寻找一种方法来创建目标实体的新实例并向记录添加新的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

别忘他 2024-07-14 01:45:04

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文