开发者

Linq to SQL table inheritance in ASP.net Dynamic Data

开发者 https://www.devze.com 2022-12-17 22:52 出处:网络
I have a Linq to SQL data model that uses single table inheritance. I created a new ASP.net Dynamic Data web site with a开发者_StackOverflow社区ll table scaffolding enabled, but I can\'t see any of t

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

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

Is this by design?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号