超类型\子类型表和LINQ [英] Super-type\Sub-type Tables and LINQ

查看:105
本文介绍了超类型\子类型表和LINQ的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想知道是否有人使用LINQ来处理数据库中的Super-type和Sub-type表.如果您知道任何好的例子,您能指出我正确的方向吗?我已经搜索了高低,但现在都没有用.仅获得表结构定义或LINQ的结果,但没有给出如何实现两者的清晰示例.

谢谢!

Hi,

I was wondering if anybody ever used LINQ to work with Super-type and Sub-type tables in a database. If you know of any good examples, can you point me in the right direction. I''ve searched high and low but to now avail. Only getting results of either the table structure definition or LINQ but nothing giving clear examples of how to implement the two.

Thanks!

推荐答案

在这里找到了一个非常不错的示例:

http://blogs.microsoft.co. il/blogs/bursteg/archive/2007/10/01/linq-to-sql-inheritance.aspx
Found a really nice example here:

http://blogs.microsoft.co.il/blogs/bursteg/archive/2007/10/01/linq-to-sql-inheritance.aspx


这篇关于超类型\子类型表和LINQ的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆