ASP.net 动态数据中的 Linq to SQL 表继承
我有一个使用单表继承的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 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.