ASP.net 动态数据中的 Linq to SQL 表继承

发布于 2024-08-18 22:20:55 字数 118 浏览 7 评论 0原文

我有一个使用单表继承的 Linq to SQL 数据模型。

我创建了一个新的 ASP.net 动态数据网站,并启用了所有表脚手架,但我看不到数据模型中的任何派生类被脚手架。

这是设计使然吗?

I have a Linq to SQL data model that uses single table inheritance.

I created a new ASP.net Dynamic Data web site with all table scaffolding enabled, but I can't see any of the derived classes in my data model being scaffolded.

Is this by design?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

怪我入戏太深 2024-08-25 22:20:55

使用 LINQ to SQL(未发布的)ASP.NET 4.0 可以实现表继承。可下载的动态数据样本/期货此处有一个 Inheritance.dbml 文件,专门为证明这一点而创建的团队。

另请参阅演练,它适用于实体框架。

Table Inheritance is possible with (unreleased) ASP.NET 4.0 using LINQ to SQL. The Dynamic Data Samples / Futures download-able here have an Inheritance.dbml file that the team created specifically to demonstrate this.

Also see the Walkthrough, which applies to Entity Framework.

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