LINQtoSQL中的多重继承? [英] Multiple Inheritance in LINQtoSQL?
问题描述
伙计们,我一直在网上冲浪,以寻找可以在LINQ-To-SQL中使用多表继承的方法.但是看起来它仅支持单表继承,这不是在ORM框架中实现继承的最佳方法.我读到,这将在下一个LINQ和Entity框架实现中解决.但是,我们所说的停留多长时间?同时,如果你们中有人尝试了一种变通方法来实现这一目标,请告诉我.而且我想利用我的空闲时间来提出这样的实现,因此欢迎提出建议!
Guys, I have been surfing thru the web to find a way that I could use Multiple-Table-Inheritance in LINQ-To-SQL. But it looks like that it only supports single table inheritance which is not the best way to achieve inheritance in a ORM framework. I got to read that this will be addressed in next LINQ and Entity framework implementations. But how longer a stay we are talking about? In the meantime, if any of you guys have tried out a work-around implementation to achieve this, please let me know. And I thought of using my leisure time to come up with such an implementation so suggestions are welcome!
/大黄蜂
推荐答案
实体框架现在支持每种类型的表: http://msdn.microsoft.com/zh-cn/library/bb399159.aspx
Entity Framework supports table per type now: http://msdn.microsoft.com/en-us/library/bb399159.aspx
这篇关于LINQtoSQL中的多重继承?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!